Fix clear all data
This commit is contained in:
parent
d4e2911450
commit
9dc5214db7
1 changed files with 5 additions and 0 deletions
|
@ -343,6 +343,11 @@ async function startInRendererProcess(isTesting = false): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function goBackToMainProcess(): Promise<void> {
|
async function goBackToMainProcess(): Promise<void> {
|
||||||
|
if (state === RendererState.InMain) {
|
||||||
|
log.info('goBackToMainProcess: Already in the main process');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
strictAssert(
|
strictAssert(
|
||||||
state === RendererState.InRenderer,
|
state === RendererState.InRenderer,
|
||||||
`goBackToMainProcess: expected ${state} to be ${RendererState.InRenderer}`
|
`goBackToMainProcess: expected ${state} to be ${RendererState.InRenderer}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue