mirror of
https://github.com/aclist/dztui.git
synced 2026-11-07 10:30:40 +01:00
fix: resolve #306
This commit is contained in:
1 parent
41b3ad8eca
commit
ef2709561d
2 files changed
+3
-14
No files matched your search
@@ -162,19 +162,6 @@ class ServerNotebook(Gtk.ScrolledWindow):
|
||||
return tv
|
||||
raise ValueError("No treeview set")
|
||||
|
||||
def add_notification(self) -> None:
|
||||
saved = self.notebook.get_nth_page(1)
|
||||
if saved is None:
|
||||
return
|
||||
text = self.notebook.get_tab_label_text(saved)
|
||||
if text is None:
|
||||
return
|
||||
# TODO: strings
|
||||
if "*" in text:
|
||||
return
|
||||
text += "*"
|
||||
self.notebook.set_tab_label_text(saved, text)
|
||||
|
||||
def update_tab_widths(self, col: Gtk.TreeViewColumn) -> None:
|
||||
# TODO: may cause pixel offsets when application is maximized
|
||||
width = col.get_width()
|
||||
|
||||
Reference in new issue
Block a user