fix progress count

This commit is contained in:
fyears 2021-12-30 01:30:53 +08:00
parent 6552fd32d1
commit 792703f8b6

View File

@ -219,11 +219,11 @@ export default class RemotelySavePlugin extends Plugin {
try { try {
//console.log(`huh ${this.settings.password}`) //console.log(`huh ${this.settings.password}`)
new Notice( new Notice(
`1/6 Remotely Save Sync Preparing (${this.settings.serviceType})` `1/7 Remotely Save Sync Preparing (${this.settings.serviceType})`
); );
this.syncStatus = "preparing"; this.syncStatus = "preparing";
new Notice("2/6 Starting to fetch remote meta data."); new Notice("2/7 Starting to fetch remote meta data.");
this.syncStatus = "getting_remote_meta"; this.syncStatus = "getting_remote_meta";
const self = this; const self = this;
const client = new RemoteClient( const client = new RemoteClient(
@ -238,7 +238,7 @@ export default class RemotelySavePlugin extends Plugin {
const remoteRsp = await client.listFromRemote(); const remoteRsp = await client.listFromRemote();
// console.log(remoteRsp); // console.log(remoteRsp);
new Notice("3/6 Starting to fetch local meta data."); new Notice("3/7 Starting to fetch local meta data.");
this.syncStatus = "getting_local_meta"; this.syncStatus = "getting_local_meta";
const local = this.app.vault.getAllLoadedFiles(); const local = this.app.vault.getAllLoadedFiles();
const localHistory = await loadDeleteRenameHistoryTable(this.db); const localHistory = await loadDeleteRenameHistoryTable(this.db);