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 3bfa5faCopy full SHA for 3bfa5fa
src/system_tray_rust.cpp
@@ -151,7 +151,10 @@ 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
#else
159
lifetime::exit_sunshine(0, true);
160
#endif
0 commit comments