fix setting default alignment

This commit is contained in:
Tamius Han 2025-01-14 02:41:20 +01:00
parent 1f65cca002
commit b4e932581c

View File

@ -401,8 +401,15 @@ export default {
commandArguments = undefined;
}
await this.siteSettings.set(option, commandArguments);
this.$nextTick( () => this.$forceUpdate() );
await this.siteSettings.set(option, commandArguments, {reload: false});
// changing alignment options doesn't trigger re-compute, so we need to do it ourselves.
// note that this re-computes siteDefaultAlignment even when setting other options, but
// it's _too late AM_ and hit to performance probably isn't bad enough to warrant
// spending time on a more correct solution tomorrow
this._computedWatchers.siteDefaultAlignment.run();
this.$nextTick( () => this.$forceUpdate());
},
setExtensionMode(component, event) {
const option = event.target.value;