mirror of
https://github.com/aclist/dztui.git
synced 2026-11-06 10:00:54 +01:00
chore: clear linting errors
This commit is contained in:
1 parent
d6fd7b2494
commit
fd9a23c6d6
16 files changed
+82
-96
No files matched your search
@@ -103,6 +103,7 @@ class RefreshButton(IconTextButton):
|
||||
# FIXME: do this after threaded call fully finishes
|
||||
# FIXME: other signals cause refresh button to become sensitive
|
||||
# after model is loaded
|
||||
# TODO: put in smm cleanup func, use signal
|
||||
GLib.timeout_add_seconds(1, self.decrement)
|
||||
self.controller.refresh_tree()
|
||||
|
||||
|
||||
@@ -45,10 +45,6 @@ class RightPanel(Gtk.Box):
|
||||
for widget in (self.refresh_button, self.filters_vbox):
|
||||
widget.set_sensitive(state)
|
||||
|
||||
# FIXME: may wish to reload these in place to show new data
|
||||
# if context in (ServerTab.RECENT, ServerTab.SAVED):
|
||||
# self.refresh_button.set_sensitive(False)
|
||||
|
||||
# TODO: reference for ping pass
|
||||
# def _on_ping_clicked(self, button: Gtk.Button) -> None:
|
||||
# block_signals()
|
||||
|
||||
@@ -150,10 +150,11 @@ class Statusbar(Gtk.Grid):
|
||||
def set_cache(self, string: str) -> None:
|
||||
self.cache = string
|
||||
|
||||
def set_text(self, string: str, context: str) -> None:
|
||||
def set_text(self, string: str, context: str) -> int:
|
||||
meta = self.statusbar.get_context_id(context)
|
||||
self.statusbar.push(meta, string)
|
||||
self.set_cache(string)
|
||||
return meta
|
||||
|
||||
def _help_row_changed(self, tree: "TreeView", sel: Gtk.TreeSelection) -> None:
|
||||
row = tree.get_value_at_index(1)
|
||||
|
||||
Reference in new issue
Block a user