2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-10 11:25:30 +00:00

Add warnings about some build options and environment variables

This commit is contained in:
Ilya Fedin
2020-08-01 12:33:45 +00:00
committed by John Preston
parent e4ac70090e
commit 5dad293335
3 changed files with 56 additions and 3 deletions

View File

@@ -44,6 +44,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtDBus/QDBusMetaType>
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
#include <glib.h>
namespace Platform {
namespace {
@@ -737,6 +739,13 @@ void MainWindow::LibsLoaded() {
qDBusRegisterMetaType<IconPixmap>();
qDBusRegisterMetaType<IconPixmapList>();
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
if (!qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())) {
g_warning(
"You can disable tray icon counter with %s "
"and make it look better if it is monochrome.",
kDisableTrayCounter.utf8().constData());
}
}
void MainWindow::initTrayMenuHook() {