feat: block connection if client is absent or not running

This commit is contained in:
aclist committed 2026-05-09 20:00:31 +09:00
1 parent 77c641327f
commit 3a22ad630a
5 files changed
+49 -33

No files matched your search

+6
View File
@@ -49,6 +49,7 @@ class Options(Gtk.Box):
)
self.controller = controller
self.controller.register_widget("options", self)
emitter = controller.get_emitter()
emitter.connect("api_change_failed", self._on_api_change_failed)
@@ -207,6 +208,11 @@ class Options(Gtk.Box):
self.scrollable.add(grid)
self.add(self.scrollable)
def get_client_name(self) -> str:
model = self.client_combo.get_model()
ind = self.client_combo.get_active()
return model[ind][0]
def block_text_entry(self) -> None:
for entry in self.steam_entry, self.bm_entry:
entry.set_position(-1)