From 242ced4022646117993539ee0c1a70b089f7700d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 19 Sep 2020 21:53:22 +0400 Subject: [PATCH] Write icon theme names to debug log --- Telegram/SourceFiles/platform/linux/linux_libs.cpp | 7 ++++++- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp index bdc14c286..6dfd94694 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp @@ -163,13 +163,18 @@ void SetIconTheme() { if (GtkSettingSupported() && GtkLoaded() && IconThemeShouldBeSet()) { - DEBUG_LOG(("Set GTK icon theme")); + DEBUG_LOG(("Setting GTK icon theme")); QIcon::setThemeName(GtkSetting("gtk-icon-theme-name")); QIcon::setFallbackThemeName(GtkSetting("gtk-fallback-icon-theme")); + + DEBUG_LOG(("New icon theme: %1").arg(QIcon::themeName())); + DEBUG_LOG(("New fallback icon theme: %1").arg(QIcon::fallbackThemeName())); + Platform::SetApplicationIcon(Window::CreateIcon()); if (App::wnd()) { App::wnd()->setWindowIcon(Window::CreateIcon()); } + Core::App().domain().notifyUnreadBadgeChanged(); } }); diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index fc0638158..308819e0e 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -1555,6 +1555,9 @@ bool OpenSystemSettings(SystemSettingsType type) { namespace ThirdParty { void start() { + DEBUG_LOG(("Icon theme: %1").arg(QIcon::themeName())); + DEBUG_LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName())); + Libs::start(); MainWindow::LibsLoaded(); }