We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a3769 commit 8f7c9e9Copy full SHA for 8f7c9e9
src/system_tray_rust.cpp
@@ -151,7 +151,11 @@ namespace system_tray {
151
BOOST_LOG(info) << "Quitting from system tray"sv;
152
#ifdef _WIN32
153
terminate_gui_processes();
154
- lifetime::exit_sunshine(ERROR_SHUTDOWN_IN_PROGRESS, true);
+ if (GetConsoleWindow() == NULL) {
155
+ lifetime::exit_sunshine(ERROR_SHUTDOWN_IN_PROGRESS, true);
156
+ } else {
157
+ lifetime::exit_sunshine(0, true);
158
+ }
159
#else
160
lifetime::exit_sunshine(0, true);
161
#endif
0 commit comments