MOBILE-2829 mac: Ignore the single instance lock in Mac
parent
6e70b4d5b6
commit
7a79d56843
|
@ -71,9 +71,11 @@ function createWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure that only a single instance of the app is running.
|
// Make sure that only a single instance of the app is running.
|
||||||
|
// For some reason, gotTheLock is always false in signed Mac apps so we should ingore it.
|
||||||
|
// See https://github.com/electron/electron/issues/15958
|
||||||
var gotTheLock = app.requestSingleInstanceLock();
|
var gotTheLock = app.requestSingleInstanceLock();
|
||||||
|
|
||||||
if (!gotTheLock) {
|
if (!gotTheLock && os.platform().indexOf('darwin') == -1) {
|
||||||
// It's not the main instance of the app, kill it.
|
// It's not the main instance of the app, kill it.
|
||||||
app.exit();
|
app.exit();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1246,6 +1246,7 @@
|
||||||
"core.courses.enrolme": "Enrol me",
|
"core.courses.enrolme": "Enrol me",
|
||||||
"core.courses.errorloadcategories": "An error occurred while loading categories.",
|
"core.courses.errorloadcategories": "An error occurred while loading categories.",
|
||||||
"core.courses.errorloadcourses": "An error occurred while loading courses.",
|
"core.courses.errorloadcourses": "An error occurred while loading courses.",
|
||||||
|
"core.courses.errorloadplugins": "The plugins required by this course could not be loaded correctly. Please restart the app to try again.",
|
||||||
"core.courses.errorsearching": "An error occurred while searching.",
|
"core.courses.errorsearching": "An error occurred while searching.",
|
||||||
"core.courses.errorselfenrol": "An error occurred while self enrolling.",
|
"core.courses.errorselfenrol": "An error occurred while self enrolling.",
|
||||||
"core.courses.filtermycourses": "Filter my courses",
|
"core.courses.filtermycourses": "Filter my courses",
|
||||||
|
|
Loading…
Reference in New Issue