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