Added last sync time to statusbar

Adds an item to the statusbar that displays the time of the last successful sync.
This commit is contained in:
Lars
2022-08-12 18:05:45 +02:00
parent 4f03024200
commit 30d94986c6
4 changed files with 70 additions and 1 deletions
+2
View File
@@ -197,6 +197,8 @@ class ChangeRemoteBaseDirModal extends Modal {
button.onClick(async () => {
this.plugin.settings[this.service].remoteBaseDir =
this.newRemoteBaseDir;
// reset last sync time
this.plugin.settings.lastSuccessSync = -1;
await this.plugin.saveSettings();
new Notice(t("modal_remotebasedir_notice"));
this.close();