diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-05-12 14:14:31 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-05-12 14:14:31 -0700 |
| commit | 5ecc5a2df2aa2431a6877d8f7ca40ef7b35bab0b (patch) | |
| tree | 68fce0a2e29381de900f845b60195e9d11134eb0 | |
| parent | d9ec6e334d3e74aa2d70f1cab6050ed6f118c527 (diff) | |
gui: use QDoubleSpinBox for RMS value connfiguration
| -rw-r--r-- | gui/gui_settings.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/gui_settings.py b/gui/gui_settings.py index 66f9a6a..2956b0e 100644 --- a/gui/gui_settings.py +++ b/gui/gui_settings.py @@ -19,6 +19,7 @@ from PySide6.QtWidgets import ( QTabWidget, QVBoxLayout, QWidget, + QDoubleSpinBox ) from gui.gui_common import ensure_qt_app @@ -138,7 +139,13 @@ class _SettingsDialog(QDialog): self.update_interval_edit = QLineEdit(str(get_value("update_interval_seconds", 2)), whisper_tab) whisper_advanced_layout.addRow(QLabel("Update interval (s):"), self.update_interval_edit) - self.audio_activity_threshold_edit = QLineEdit(str(get_value("audio_activity_threshold", 0.003)), whisper_tab) + self.audio_activity_threshold_edit = QDoubleSpinBox(whisper_tab) + self.audio_activity_threshold_edit.setDecimals(3) + self.audio_activity_threshold_edit.setSingleStep(0.001) + self.audio_activity_threshold_edit.setRange(0.0, 999999.0) + self.audio_activity_threshold_edit.setValue( + float(get_value("audio_activity_threshold", 0.003)) + ) whisper_advanced_layout.addRow(QLabel("Audio activity threshold (RMS):"), self.audio_activity_threshold_edit) self.audio_indicator_label = QLabel("⚪ Idle", whisper_tab) |
