From 198528f79ff5f4f05a707ee448d898aee730ef91 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 21 May 2024 13:23:07 +0400 Subject: [PATCH] Remove code needed for a removed patch --- .../SourceFiles/platform/linux/integration_linux.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/integration_linux.cpp b/Telegram/SourceFiles/platform/linux/integration_linux.cpp index b2a8cf611..147a9f03c 100644 --- a/Telegram/SourceFiles/platform/linux/integration_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/integration_linux.cpp @@ -17,7 +17,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "base/random.h" #include -#include #include #include @@ -190,23 +189,24 @@ private: const gi::ref_ptr _application; XdpInhibit::InhibitProxy _inhibitProxy; +#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0) base::Platform::XDP::SettingWatcher _darkModeWatcher; +#endif // Qt < 6.5.0 }; LinuxIntegration::LinuxIntegration() : _application(MakeApplication()) +#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0) , _darkModeWatcher( "org.freedesktop.appearance", "color-scheme", [](GLib::Variant value) { -#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) - QWindowSystemInterface::handleThemeChange(); -#else // Qt >= 6.5.0 Core::Sandbox::Instance().customEnterFromEventLoop([&] { Core::App().settings().setSystemDarkMode(value.get_uint32() == 1); }); +}) #endif // Qt < 6.5.0 -}) { +{ LOG(("Icon theme: %1").arg(QIcon::themeName())); LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName()));