fix update linux

This commit is contained in:
dranik
2026-05-30 12:55:27 +03:00
parent 58d6c362f3
commit 345fbf99de
5 changed files with 30 additions and 5 deletions
@@ -78,12 +78,17 @@ void SystemTrayNotificationHandler::updateWebsiteUrl(const QString &newWebsiteUr
void SystemTrayNotificationHandler::refreshTheme()
{
const bool isDarkTheme = platformIsDarkTheme();
if (isDarkTheme == m_isDarkTheme) {
return;
}
const bool themeChanged = (isDarkTheme != m_isDarkTheme);
m_isDarkTheme = isDarkTheme;
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
// Palette can change without gtk/portal settings updating; always repaint on Linux.
updateTrayIcon();
#else
if (themeChanged) {
updateTrayIcon();
}
#endif
}
TrayIconVisual SystemTrayNotificationHandler::currentTrayVisual() const