From c9d3a05ca1bf45c06f22233124670e5e45b5f5f1 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Thu, 24 Feb 2022 00:29:16 +0800 Subject: [PATCH] another way to deal with trash --- src/main.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index a711cb4..0d17d20 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,7 +85,6 @@ export default class RemotelySavePlugin extends Plugin { currSyncMsg?: string; syncRibbon?: HTMLElement; autoRunIntervalID?: number; - ignoreAutoRemovedRecords?: Record; async syncRun(triggerSource: SyncTriggerSourceType = "manual") { const getNotice = (x: string) => { @@ -266,8 +265,6 @@ export default class RemotelySavePlugin extends Plugin { revokeAuthSetting: undefined, }; // init - this.ignoreAutoRemovedRecords = {}; - this.currSyncMsg = ""; await this.loadSettings(); @@ -643,9 +640,7 @@ export default class RemotelySavePlugin extends Plugin { } async trash(x: string) { - this.ignoreAutoRemovedRecords[x] = Date.now(); if (!(await this.app.vault.adapter.trashSystem(x))) { - this.ignoreAutoRemovedRecords[x] = Date.now(); await this.app.vault.adapter.trashLocal(x); } }