mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix update linux
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user