Skip to content

Commit

Permalink
fix: undefined __style_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jul 8, 2024
1 parent 6a5605e commit de9864a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apx_gui/windows/create_subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(
self.__subsystems: list[Subsystem] = subsystems
self.__stacks: list[Stack] = stacks
self.__terminal = Vte.Terminal()
self.__style_manager = self.__window.style_manager

self.console_box_visible = False

Expand Down
4 changes: 2 additions & 2 deletions apx_gui/windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from typing import Any
from uuid import UUID
from gi.repository import Gtk, Adw, GLib
from gi.repository import Gtk, Adw, GLib # pyright: ignore

from apx_gui.core.apx import Apx
from apx_gui.core.apx_entities import Subsystem, Stack, PkgManager
Expand All @@ -41,7 +41,7 @@ class ApxGUIWindow(Adw.ApplicationWindow):
content: Adw.Bin = Gtk.Template.Child() # pyright: ignore
tab_bar: Adw.TabBar = Gtk.Template.Child() # pyright: ignore
title: Adw.WindowTitle = Gtk.Template.Child() # pyright: ignore
style_manager = Adw.StyleManager().get_default() # pyright: ignore
style_manager = Adw.StyleManager().get_default() # pyright: ignore

def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
Expand Down

0 comments on commit de9864a

Please sign in to comment.