chore: move method into config manager

This commit is contained in:
aclist committed 2026-04-27 00:00:14 +09:00
1 parent f25982ab7a
commit 3d33d4f1e0
3 files changed
+27 -17

No files matched your search

+2 -1
View File
@@ -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()