From b89fde9a5e39771e307474078a01141b9fce6447 Mon Sep 17 00:00:00 2001 From: Odizinne Date: Thu, 15 Aug 2024 12:18:08 +0200 Subject: [PATCH] Update headsetcontrol-qt.py --- src/headsetcontrol-qt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/headsetcontrol-qt.py b/src/headsetcontrol-qt.py index 112c140..1690d51 100644 --- a/src/headsetcontrol-qt.py +++ b/src/headsetcontrol-qt.py @@ -129,12 +129,15 @@ def create_default_settings(self): settings = { "led_state": True, "light_battery_threshold": 20, - "light_battery_threshold" "sidetone": 0, + "notification_battery_threshold": 20, + "sidetone": 0, "theme": "System", } with open(SETTINGS_FILE, "w") as f: json.dump(settings, f, indent=4) + + def update_headset_info(self): command = [HEADSETCONTROL_EXECUTABLE, "-o", "json"] creation_flags = subprocess.CREATE_NO_WINDOW if sys.platform == "win32" else 0