mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Immediately apply tray icon change on Apply
Rather than waiting until the user chooses OK or Cancel to update the system tray icon status, update it when the user chooses Apply.
This commit is contained in:
@@ -3151,11 +3151,14 @@ void OBSBasicSettings::SaveGeneralSettings()
|
||||
"KeepReplayBufferStreamStops",
|
||||
ui->keepReplayStreamStops->isChecked());
|
||||
|
||||
if (WidgetChanged(ui->systemTrayEnabled))
|
||||
if (WidgetChanged(ui->systemTrayEnabled)) {
|
||||
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"SysTrayEnabled",
|
||||
ui->systemTrayEnabled->isChecked());
|
||||
|
||||
main->SystemTray(false);
|
||||
}
|
||||
|
||||
if (WidgetChanged(ui->systemTrayWhenStarted))
|
||||
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"SysTrayWhenStarted",
|
||||
|
||||
Reference in New Issue
Block a user