mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 11:20:49 +08:00
update: check instead of re-applying the same theme
This commit is contained in:
parent
0aad012576
commit
0123613e91
@ -1 +1 @@
|
||||
5463
|
||||
5464
|
||||
|
@ -308,7 +308,10 @@ void PreferencesWindow::on_buttonBox_accepted()
|
||||
{
|
||||
NEEDRESTART
|
||||
}
|
||||
StyleManager->ApplyStyle(CurrentConfig.uiConfig.theme);
|
||||
if (CurrentConfig.uiConfig.theme != GlobalConfig.uiConfig.theme)
|
||||
{
|
||||
StyleManager->ApplyStyle(CurrentConfig.uiConfig.theme);
|
||||
}
|
||||
SaveGlobalSettings(CurrentConfig);
|
||||
UIMessageBus.EmitGlobalSignal(QvMBMessage::UPDATE_COLORSCHEME);
|
||||
if (NeedRestart)
|
||||
|
Loading…
Reference in New Issue
Block a user