Skip to content

Commit

Permalink
Fix typo in settings dialog code that prevents float settings from pr…
Browse files Browse the repository at this point in the history
…oper initialisation.
  • Loading branch information
dlyongemallo committed Oct 22, 2023
1 parent cf07936 commit 67fe632
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 67fe632

Please sign in to comment.