Skip to content

Commit

Permalink
Merge pull request #153 from dlyongemallo/settings_float_typo
Browse files Browse the repository at this point in the history
Fix typo in settings dialog code that prevents float settings from proper initialisation.
  • Loading branch information
jvdwetering authored Oct 22, 2023
2 parents cf07936 + 67fe632 commit 70b7be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zxlive/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def add_setting(self,form:QFormLayout, name:str, label:str, ty:str) -> None:
widget.setValue(val)
elif ty == 'float':
widget = QDoubleSpinBox()
val = float(int)
val = float(val)
widget.setValue(val)

form.addRow(label, widget)
Expand All @@ -161,4 +161,4 @@ def cancel(self) -> None:

def open_settings_dialog():
dialog = SettingsDialog()
dialog.exec()
dialog.exec()

0 comments on commit 70b7be5

Please sign in to comment.