Skip to content

Commit

Permalink
fix: 🐛 Show correct value for initial size in settings
Browse files Browse the repository at this point in the history
The settings showed the value of the step size in the initial size slider instead of the configured initial size.
  • Loading branch information
nicojeske committed Feb 26, 2024
1 parent 9442495 commit e549f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class MouseWheelZoomSettingsTab extends PluginSettingTab {
.setValue(500)
.setLimits(0, 1000, 25)
.setDynamicTooltip()
.setValue(this.plugin.settings.stepSize)
.setValue(this.plugin.settings.initialSize)
.onChange(async (value) => {
this.plugin.settings.initialSize = value
await this.plugin.saveSettings()
Expand Down

0 comments on commit e549f06

Please sign in to comment.