1
0
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:
Laurent Cozic 2023-06-08 14:43:47 +01:00
parent a41c9b6819
commit fb27ae991c
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export const runtime = (): CommandRuntime => {
};
await saveProfileConfig(`${Setting.value('rootProfileDir')}/profiles.json`, newConfig);
await restart(false);
await restart();
},
};
};

View File

@ -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 });