mirror of https://github.com/laurent22/joplin.git
Merge branch 'master' of github.com:laurent22/joplin
commit
cdcc3902c5
|
@ -50,7 +50,15 @@ class Command extends BaseCommand {
|
||||||
this.stdout(_('Operation cancelled'));
|
this.stdout(_('Operation cancelled'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const password2 = await this.prompt(_('Confirm master password:'), { type: 'string', secure: true });
|
||||||
|
if (!password2) {
|
||||||
|
this.stdout(_('Operation cancelled'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (password !== password2) {
|
||||||
|
this.stdout(_('Passwords did not match!'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
await EncryptionService.instance().generateMasterKeyAndEnableEncryption(password);
|
await EncryptionService.instance().generateMasterKeyAndEnableEncryption(password);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,8 +218,8 @@ class Setting extends BaseModel {
|
||||||
let output = {};
|
let output = {};
|
||||||
output[Setting.THEME_LIGHT] = _('Light');
|
output[Setting.THEME_LIGHT] = _('Light');
|
||||||
output[Setting.THEME_DARK] = _('Dark');
|
output[Setting.THEME_DARK] = _('Dark');
|
||||||
output[Setting.THEME_DRACULA] = _('Dracula');
|
|
||||||
if (platform !== 'mobile') {
|
if (platform !== 'mobile') {
|
||||||
|
output[Setting.THEME_DRACULA] = _('Dracula');
|
||||||
output[Setting.THEME_SOLARIZED_LIGHT] = _('Solarised Light');
|
output[Setting.THEME_SOLARIZED_LIGHT] = _('Solarised Light');
|
||||||
output[Setting.THEME_SOLARIZED_DARK] = _('Solarised Dark');
|
output[Setting.THEME_SOLARIZED_DARK] = _('Solarised Dark');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue