mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
fix: building without the system tray enabled (#5092)
This commit is contained in:
+8
-2
@@ -310,7 +310,10 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Break out of the main loop
|
||||
shutdown_event->raise(true);
|
||||
system_tray::end_tray();
|
||||
|
||||
if (tray_is_enabled && config::sunshine.system_tray) {
|
||||
system_tray::end_tray();
|
||||
}
|
||||
|
||||
display_device_deinit_guard = nullptr;
|
||||
});
|
||||
@@ -327,7 +330,10 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Break out of the main loop
|
||||
shutdown_event->raise(true);
|
||||
system_tray::end_tray();
|
||||
|
||||
if (tray_is_enabled && config::sunshine.system_tray) {
|
||||
system_tray::end_tray();
|
||||
}
|
||||
|
||||
display_device_deinit_guard = nullptr;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user