Skip to content

Commit

Permalink
fix: Fixes "Default Layout" setting not being respected until restart
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed May 9, 2024
1 parent 72cc62e commit 8f24d0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ export default class StatblockSettingTab extends PluginSettingTab {

d.onChange(async (v) => {
this.plugin.settings.default = v;
this.plugin.manager.setDefaultLayout(v);
await this.plugin.saveSettings();
});
});
Expand Down

0 comments on commit 8f24d0d

Please sign in to comment.