mirror of https://github.com/BOINC/boinc.git
[GUI] When another instance of the BOINC Manager is already running - show the corresponding message to the user
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
parent
86669cd2c1
commit
3fdebcb190
|
@ -461,8 +461,14 @@ bool CBOINCGUIApp::OnInit() {
|
|||
// Detect if BOINC Manager is already running, if so, bring it into the
|
||||
// foreground and then exit.
|
||||
if (DetectDuplicateInstance()) {
|
||||
printf( "Another instance of BOINC Manager already running.\n");
|
||||
return false;
|
||||
wxMessageDialog dialog(
|
||||
NULL,
|
||||
_("Another instance of BOINC Manager is already running."),
|
||||
_("BOINC Manager"),
|
||||
wxOK|wxICON_WARNING
|
||||
);
|
||||
dialog.ShowModal();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Initialize the main document
|
||||
|
|
Loading…
Reference in New Issue