mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2024-12-12 09:04:06 +02:00
Fix:
- Fixed Setup wizard - Set initial pane to General settings.
This commit is contained in:
parent
5e181a8ec4
commit
69c6e57df3
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user