From 67fe632b826743e5f1256c45cd4a11cf958b2f54 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 22 Oct 2023 11:10:17 +0200 Subject: [PATCH] Fix typo in settings dialog code that prevents float settings from proper initialisation. --- zxlive/settings_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zxlive/settings_dialog.py b/zxlive/settings_dialog.py index e89a83bc..251fa6bf 100644 --- a/zxlive/settings_dialog.py +++ b/zxlive/settings_dialog.py @@ -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) @@ -161,4 +161,4 @@ def cancel(self) -> None: def open_settings_dialog(): dialog = SettingsDialog() - dialog.exec() \ No newline at end of file + dialog.exec()