ref:676d331ba901a27aa3a2992dade3d3124da5eb0e

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

SHA: 676d331ba901a27aa3a2992dade3d3124da5eb0e
Author: James Le Cuirot <chewi@gentoo.org>
Date: 2026-05-11 01:22
Parents: 0db9f73
1 files changed +8 -2
Type
src/main.cpp +8 −2
@@ -310,7 +310,10 @@
// 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 @@
// 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;
});