Skip to content

Commit 3ef03ac

Browse files
authored
Merge pull request #6195 from BOINC/mac_fix_systray_arg
Mac Manager: fix response to -s or --systray argument
2 parents 0dd8ded + e151640 commit 3ef03ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clientgui/BOINCGUIApp.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ bool CBOINCGUIApp::OnInit() {
203203
}
204204
#endif
205205

206-
207206
if (g_use_sandbox) {
208207
wxCHANGE_UMASK(2); // Set file creation mask to be writable by both user and group
209208
// Our umask will be inherited by all our child processes
@@ -775,6 +774,9 @@ bool CBOINCGUIApp::OnCmdLineParsed(wxCmdLineParser &parser) {
775774
#if defined(__WXMSW__) || defined(__WXMAC__)
776775
if (parser.Found(wxT("systray"))) {
777776
m_bGUIVisible = false;
777+
#ifdef __WXMAC__
778+
m_bBOINCMGRAutoStarted = true;
779+
#endif
778780
}
779781
#endif
780782
if (parser.Found(wxT("insecure"))) {
@@ -1141,6 +1143,7 @@ int CBOINCGUIApp::IdleTrackerDetach() {
11411143
}
11421144

11431145

1146+
// TODO: Does the Mac really need the OnActivateApp() routine?
11441147
void CBOINCGUIApp::OnActivateApp(wxActivateEvent& event) {
11451148
m_bProcessingActivateAppEvent = true;
11461149

0 commit comments

Comments
 (0)