mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-17 10:06:00 +00:00
New feature:
- Per-file-saved customization sync has been shipped. - Customisation sync has got beta3. Improved: - Start-up speed has been improved. Fixed: - On the customisation sync dialogue, buttons are kept within the screen. - No more unnecessary entries on `data.json` for customisation sync. - Selections are no longer lost while updating customisation items. Tidied on source codes: - Many typos have been fixed. - Some unnecessary type casting removed.
This commit is contained in:
@@ -2231,7 +2231,7 @@ ${stringifyYaml(pluginConfig)}`;
|
||||
// With great respect, thank you TfTHacker!
|
||||
// Refer: https://github.com/TfTHacker/obsidian42-brat/blob/main/src/features/BetaPlugins.ts
|
||||
const containerPluginSettings = containerEl.createDiv();
|
||||
this.createEl(containerPluginSettings, "h3", { text: "Customization sync (beta)" });
|
||||
this.createEl(containerPluginSettings, "h3", { text: "Customization sync (beta 3)" });
|
||||
|
||||
const enableOnlyOnPluginSyncIsNotEnabled = enableOnly(() => this.isConfiguredAs("usePluginSync", false));
|
||||
const visibleOnlyOnPluginSyncEnabled = visibleOnly(() => this.isConfiguredAs("usePluginSync", true));
|
||||
@@ -2242,6 +2242,9 @@ ${stringifyYaml(pluginConfig)}`;
|
||||
onUpdate: enableOnlyOnPluginSyncIsNotEnabled
|
||||
});
|
||||
|
||||
new Setting(containerPluginSettings)
|
||||
.autoWireToggle("usePluginSyncV2")
|
||||
|
||||
new Setting(containerPluginSettings)
|
||||
.autoWireToggle("usePluginSync", {
|
||||
onUpdate: enableOnly(() => !this.isConfiguredAs("deviceAndVaultName", ""))
|
||||
|
||||
Reference in New Issue
Block a user