diff --git a/src/main.ts b/src/main.ts index bc29129..9b42d55 100644 --- a/src/main.ts +++ b/src/main.ts @@ -120,12 +120,12 @@ export default class SaveRemotePlugin extends Plugin { this.syncStatus = "finish"; this.syncStatus = "idle"; } catch (error) { - this.syncStatus = "idle"; const msg = `Save Remote error while ${this.syncStatus}`; console.log(msg); console.log(error); new Notice(msg); new Notice(error); + this.syncStatus = "idle"; } });