mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 09:30:55 +00:00
fix: building without the system tray enabled (#5092)
This commit is contained in:
1 parent
0db9f73e6b
commit
676d331ba9
1 file changed
+8
-2
+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