Skip to content

Commit

Permalink
Instant reading mode line number setting update
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurankv committed Aug 27, 2023
1 parent 2cb7b63 commit 3451a06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export class SettingsTab extends PluginSettingTab {
this.plugin.settings.currentTheme.settings.codeblock.lineNumbers = value;
this.disableableComponents["lineNumbers"].forEach(component => {component.setDisabled(!value);});
(async () => {await this.plugin.saveSettings();})();
this.plugin.renderReadingView();
}));
new Setting(containerEl)
.setName("Gutter Background Colour")
Expand Down

0 comments on commit 3451a06

Please sign in to comment.