fix: building without the system tray enabled (#5092)

This commit is contained in:
James Le Cuirot
2026-05-11 02:22:56 +01:00
committed by GitHub
parent 0db9f73e6b
commit 676d331ba9
+8 -2
View File
@@ -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;
});