mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
chore: move method into config manager
This commit is contained in:
1 parent
f25982ab7a
commit
3d33d4f1e0
3 files changed
+27
-17
No files matched your search
@@ -281,10 +281,11 @@ class Options(Gtk.Box):
|
||||
self.controller.update_config(enum, value)
|
||||
case Preferences.BM | Preferences.STEAM:
|
||||
text = "".join(entry.get_text().split())
|
||||
self.controller.update_api_key(text, enum)
|
||||
self.controller.update_api_key(enum, text)
|
||||
|
||||
def _on_api_change_failed(self, emitter: "Emitter") -> None:
|
||||
self.old_entry.set_text(self.old_text)
|
||||
# FIXME: ambiguous error message
|
||||
dialog = ExceptionDialog(self.controller, strings.api_error)
|
||||
dialog.run()
|
||||
|
||||
|
||||
Reference in new issue
Block a user