フラグ解除が確実に行われるように
This commit is contained in:
parent
7635439b6b
commit
b02aba8404
|
@ -19,11 +19,11 @@ export async function reloadAsk() {
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
text: i18n.ts.reloadToApplySetting,
|
text: i18n.ts.reloadToApplySetting,
|
||||||
|
}).finally(() => {
|
||||||
|
isReloadConfirming = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!canceled) {
|
if (canceled) return;
|
||||||
unisonReload();
|
|
||||||
}
|
|
||||||
|
|
||||||
isReloadConfirming = false;
|
unisonReload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue