1
0
mirror of https://github.com/vrtmrz/obsidian-livesync.git synced 2024-12-12 09:04:06 +02:00
- Fixed Setup wizard
- Set initial pane to General settings.
This commit is contained in:
vorotamoroz 2023-06-01 17:01:42 +09:00
parent 5e181a8ec4
commit 69c6e57df3

View File

@ -137,11 +137,10 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
if (JSON.stringify(this.plugin.settings) != JSON.stringify(DEFAULT_SETTINGS)) {
this.plugin.replicator.closeReplication();
this.plugin.settings = { ...DEFAULT_SETTINGS };
await this.plugin.saveSettings();
changeDisplay("0")
await this.display();
containerEl.addClass("isWizard");
inWizard = true;
this.plugin.saveSettings();
Logger("Configuration has been flushed, please open it again", LOG_LEVEL.NOTICE)
// @ts-ignore
this.plugin.app.setting.close()
} else {
containerEl.addClass("isWizard");
applyDisplayEnabled();
@ -1879,7 +1878,7 @@ ${stringifyYaml(pluginConfig)}`;
}
} else {
if (isAnySyncEnabled()) {
changeDisplay("0");
changeDisplay("20");
} else {
changeDisplay("110")
}