Skip to content

Commit

Permalink
Use new boolean settings value
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdwetering committed Jul 16, 2024
1 parent 33f3234 commit 1aeab9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zxlive/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def update(self) -> None:
get_settings_value("font/size", int)
)
self.SNAP = SCALE / self.SNAP_DIVISION
self.PREVIEWS_SHOW = (get_settings_value("previews-show",str) == "True")
self.PREVIEWS_SHOW = get_settings_value("previews-show",bool)
self.PREVIEWS_SHOW = True


# Initialise settings
Expand Down
2 changes: 2 additions & 0 deletions zxlive/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ def update_global_settings(self) -> None:
self.settings.setValue(name, widget.value())
elif isinstance(widget, QComboBox):
self.settings.setValue(name, widget.currentData())
elif isinstance(widget, QCheckBox):
self.settings.setValue(name, widget.isChecked())
display_setting.update()

def apply_global_settings(self) -> None:
Expand Down

0 comments on commit 1aeab9a

Please sign in to comment.