mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 23:22:44 +01:00
feat: block connection if client is absent or not running
This commit is contained in:
1 parent
77c641327f
commit
3a22ad630a
5 files changed
+49
-33
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user