mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-23 01:23:22 +00:00
Improve troubleshooting and compatible setting handling
This commit is contained in:
1 parent
058da1f34c
commit
d489452583
15 files changed
+868
-50
No files matched your search
@@ -206,7 +206,8 @@ export class LiveSyncSetting extends Setting {
|
||||
const setValue = wrapMemo((value: boolean) => {
|
||||
toggle.setValue(opt?.invert ? !value : value);
|
||||
});
|
||||
this.invalidateValue = () => setValue(LiveSyncSetting.env.editingSettings[key] ?? false);
|
||||
this.invalidateValue = () =>
|
||||
setValue(LiveSyncSetting.env.editingSettings[key] ?? opt?.defaultToggleValue ?? false);
|
||||
this.invalidateValue();
|
||||
|
||||
toggle.onChange(async (value) => {
|
||||
|
||||
Reference in new issue
Block a user