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
|
// Detect if BOINC Manager is already running, if so, bring it into the
|
||||||
// foreground and then exit.
|
// foreground and then exit.
|
||||||
if (DetectDuplicateInstance()) {
|
if (DetectDuplicateInstance()) {
|
||||||
printf( "Another instance of BOINC Manager already running.\n");
|
wxMessageDialog dialog(
|
||||||
return false;
|
NULL,
|
||||||
|
_("Another instance of BOINC Manager is already running."),
|
||||||
|
_("BOINC Manager"),
|
||||||
|
wxOK|wxICON_WARNING
|
||||||
|
);
|
||||||
|
dialog.ShowModal();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the main document
|
// Initialize the main document
|
||||||
|
|
Loading…
Reference in New Issue