mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 09:45:56 +00:00
Fix:
- Fixed Setup wizard - Set initial pane to General settings.
This commit is contained in:
@@ -137,11 +137,10 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
if (JSON.stringify(this.plugin.settings) != JSON.stringify(DEFAULT_SETTINGS)) {
|
if (JSON.stringify(this.plugin.settings) != JSON.stringify(DEFAULT_SETTINGS)) {
|
||||||
this.plugin.replicator.closeReplication();
|
this.plugin.replicator.closeReplication();
|
||||||
this.plugin.settings = { ...DEFAULT_SETTINGS };
|
this.plugin.settings = { ...DEFAULT_SETTINGS };
|
||||||
await this.plugin.saveSettings();
|
this.plugin.saveSettings();
|
||||||
changeDisplay("0")
|
Logger("Configuration has been flushed, please open it again", LOG_LEVEL.NOTICE)
|
||||||
await this.display();
|
// @ts-ignore
|
||||||
containerEl.addClass("isWizard");
|
this.plugin.app.setting.close()
|
||||||
inWizard = true;
|
|
||||||
} else {
|
} else {
|
||||||
containerEl.addClass("isWizard");
|
containerEl.addClass("isWizard");
|
||||||
applyDisplayEnabled();
|
applyDisplayEnabled();
|
||||||
@@ -1879,7 +1878,7 @@ ${stringifyYaml(pluginConfig)}`;
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isAnySyncEnabled()) {
|
if (isAnySyncEnabled()) {
|
||||||
changeDisplay("0");
|
changeDisplay("20");
|
||||||
} else {
|
} else {
|
||||||
changeDisplay("110")
|
changeDisplay("110")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user