mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
Linux: Resolves #8289: Ask user to restart app after switching profile
This commit is contained in:
parent
a41c9b6819
commit
fb27ae991c
@ -20,7 +20,7 @@ export const runtime = (): CommandRuntime => {
|
||||
};
|
||||
|
||||
await saveProfileConfig(`${Setting.value('rootProfileDir')}/profiles.json`, newConfig);
|
||||
await restart(false);
|
||||
await restart();
|
||||
},
|
||||
};
|
||||
};
|
||||
|
@ -22,7 +22,7 @@ export const runtime = (comp: any): CommandRuntime => {
|
||||
const { newConfig, newProfile } = createNewProfile(context.state.profileConfig, answer);
|
||||
newConfig.currentProfileId = newProfile.id;
|
||||
await saveProfileConfig(`${Setting.value('rootProfileDir')}/profiles.json`, newConfig);
|
||||
await restart(false);
|
||||
await restart();
|
||||
}
|
||||
|
||||
comp.setState({ promptOptions: null });
|
||||
|
Loading…
Reference in New Issue
Block a user