mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-05-07 16:21:51 +00:00
Fixed: No longer credentials are broken during object storage configuration (related: #852).
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -32,6 +32,7 @@ import SetupRemote from "../SetupWizard/dialogs/SetupRemote.svelte";
|
||||
import SetupRemoteCouchDB from "../SetupWizard/dialogs/SetupRemoteCouchDB.svelte";
|
||||
import SetupRemoteBucket from "../SetupWizard/dialogs/SetupRemoteBucket.svelte";
|
||||
import SetupRemoteP2P from "../SetupWizard/dialogs/SetupRemoteP2P.svelte";
|
||||
import { syncActivatedRemoteSettings } from "./remoteConfigBuffer.ts";
|
||||
|
||||
function getSettingsFromEditingSettings(editingSettings: AllSettings): ObsidianLiveSyncSettings {
|
||||
const workObj = { ...editingSettings } as ObsidianLiveSyncSettings;
|
||||
@@ -183,6 +184,11 @@ export function paneRemoteConfig(
|
||||
}, true);
|
||||
|
||||
if (synchroniseActiveRemote) {
|
||||
// Keep both buffers aligned with the newly activated remote before saving any remaining dirty keys.
|
||||
syncActivatedRemoteSettings(this.editingSettings, this.core.settings);
|
||||
if (this.initialSettings) {
|
||||
syncActivatedRemoteSettings(this.initialSettings, this.core.settings);
|
||||
}
|
||||
await this.saveAllDirtySettings();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user