This commit is contained in:
2026-06-02 07:34:09 +02:00
parent d927afbb87
commit b3f0a2eecc
9 changed files with 261 additions and 69 deletions
+2 -2
View File
@@ -326,14 +326,14 @@ class MainWindow(QMainWindow):
def _reload_profiles(self):
self._profile_combo.blockSignals(True)
self._profile_combo.clear()
self._profile_combo.addItem("Défaut (actif)")
self._profile_combo.addItem(f"{self._cfg.active_profile} (actif)")
for name in self._cfg.list_profiles():
marker = "" if name == self._cfg.active_profile else " "
self._profile_combo.addItem(f"{marker}{name}")
self._profile_combo.blockSignals(False)
def _on_profile_changed(self, text: str):
if "Défaut" in text:
if "(actif)" in text:
return
name = text.lstrip("").strip()
if not name or name == self._cfg.active_profile: