From a764e419e7ea23666e0ee553080fda0cd3f275db Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:05:30 +0800 Subject: [PATCH] add koofr --- src/main.ts | 5 ++++- src/settings.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index cc3ccaa..a1e2841 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1797,6 +1797,9 @@ export default class RemotelySavePlugin extends Plugin { ) { if (this.statusBarElement === undefined) return; + // console.debug(lastSuccessSyncMillis); + // console.debug(lastFailedSyncMillis); + const t = (x: TransItemType, vars?: any) => { return this.i18n.t(x, vars); }; @@ -1811,7 +1814,7 @@ export default class RemotelySavePlugin extends Plugin { const isSuccess = (lastSuccessSyncMillis ?? -999) >= (lastFailedSyncMillis ?? -999); - if (lastSuccessSyncMillis === -1) { + if (this.isSyncing) { // magic number // otherwise how can we know we are syncing?? lastSyncMsg = diff --git a/src/settings.ts b/src/settings.ts index 456bc6c..64011d1 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1898,7 +1898,7 @@ export class RemotelySaveSettingTab extends PluginSettingTab { "yandexdisk", t("settings_chooseservice_yandexdisk") ); - // dropdown.addOption("koofr", t("settings_chooseservice_koofr")); + dropdown.addOption("koofr", t("settings_chooseservice_koofr")); dropdown .setValue(this.plugin.settings.serviceType)