1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-24 20:19:10 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Laurent Cozic
7e387c47f2 Update BaseApplication.ts 2023-03-14 11:45:30 +00:00
palerdot
7dae90698d refactor: fix comments 2023-03-14 15:27:14 +05:30
palerdot
0093dfc361 Merge remote-tracking branch 'origin/dev' into safe-mode-command-line-flag 2023-03-14 15:20:38 +05:30
palerdot
09e143f218 feat(desktop,cli): --safe-mode command line option 2023-03-14 15:18:52 +05:30

View File

@@ -192,6 +192,12 @@ export default class BaseApplication {
continue;
}
if (arg === '--safe-mode') {
matched.isSafeMode = true;
argv.splice(0, 1);
continue;
}
if (arg === '--open-dev-tools') {
Setting.setConstant('flagOpenDevTools', true);
argv.splice(0, 1);
@@ -829,6 +835,10 @@ export default class BaseApplication {
appLogger.info(`Client ID: ${Setting.value('clientId')}`);
if (initArgs?.isSafeMode) {
Setting.setValue('isSafeMode', true);
}
if (Setting.value('firstStart')) {
// If it's a sub-profile, the locale must come from the root
// profile.