mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 17:57:06 +02:00
chore: add comments
This commit is contained in:
parent
3ae06f0bfb
commit
4e0cd02afa
@ -63,6 +63,7 @@ def main() -> None:
|
||||
# NOTE: consider aborting this check if steam deck
|
||||
xdg_paths = get_xdg_paths()
|
||||
XDG = parse_filepaths(xdg_paths)
|
||||
# TODO: ensure state path is created
|
||||
|
||||
if has_new_config(XDG.config) is False:
|
||||
migrate_legacy_conf(XDG.config)
|
||||
@ -93,6 +94,7 @@ def main() -> None:
|
||||
if _is_steam_deck is False:
|
||||
# TODO: sudo escalation dialog
|
||||
count = get_map_count()
|
||||
# TODO: move into module
|
||||
if has_steam_client() is False:
|
||||
EarlyAlertDialog(init.requires_steam)
|
||||
sys.exit(1)
|
||||
|
||||
@ -237,7 +237,7 @@ class AppHeaderBar(Gtk.HeaderBar):
|
||||
|
||||
|
||||
# TODO: deprecated
|
||||
class ScrollableNote(ScrollableMixin, Gtk.Box):
|
||||
class ScrollableNote(ScrollableMixin, Gtk.Box): # type: ignore
|
||||
def __init__(self, content_box: Gtk.Box, back_button: bool = False):
|
||||
super().__init__(orientation=Gtk.Orientation.VERTICAL)
|
||||
|
||||
@ -263,7 +263,7 @@ class ScrollableNote(ScrollableMixin, Gtk.Box):
|
||||
pass
|
||||
|
||||
|
||||
class Notebook(ScrollableMixin, Gtk.Notebook):
|
||||
class Notebook(ScrollableMixin, Gtk.Notebook): # type: ignore
|
||||
def __init__(self) -> None:
|
||||
super().__init__(show_tabs=False)
|
||||
|
||||
@ -275,7 +275,6 @@ class Notebook(ScrollableMixin, Gtk.Notebook):
|
||||
self.help = Help(MainController)
|
||||
self.clog = Changelog(MainController)
|
||||
|
||||
# TODO: make all treeviews internally scrollable in base class
|
||||
self.keys = Keybindings()
|
||||
self.settings = Options(MainController)
|
||||
|
||||
@ -283,13 +282,13 @@ class Notebook(ScrollableMixin, Gtk.Notebook):
|
||||
self.servers = ServerNotebook(MainController)
|
||||
self.mods = Mods(MainController)
|
||||
|
||||
# TODO: change this class to scrolledwindow
|
||||
# TODO: make all treeviews internally scrollable in base class
|
||||
self.scroll_log = Gtk.ScrolledWindow()
|
||||
self.scroll_log.set_hexpand(True)
|
||||
self.log_table = LogTreeView(MainController)
|
||||
self.scroll_log.add(self.log_table)
|
||||
|
||||
# TODO: change this class to scrolledwindow
|
||||
# TODO: make all treeviews internally scrollable in base class
|
||||
self.thanks = ScrollableNote(Thanks(), back_button=False)
|
||||
# TODO: change this class to scrolledwindow
|
||||
developers = Developers(MainController)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user