Skip to content

Commit

Permalink
Main application icon was included into JalIcon class.
Browse files Browse the repository at this point in the history
  • Loading branch information
titov-vv committed Feb 3, 2024
1 parent 2ed241e commit 2f1f976
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
File renamed without changes
2 changes: 2 additions & 0 deletions jal/widgets/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class JalIcon(UserDict):
NONE = auto()
ADD = auto()
ADD_CHILD = auto()
APP_MAIN = auto()
BOND_AMORTIZATION = auto()
BOND_INTEREST = auto()
BUY = auto()
Expand Down Expand Up @@ -52,6 +53,7 @@ class JalIcon(UserDict):
_icon_files = {
ADD: "add.ico",
ADD_CHILD: "add_child.ico",
APP_MAIN: "jal.png",
BOND_AMORTIZATION: "amortization.ico",
BOND_INTEREST: "coupon.ico",
BUY: "buy.ico",
Expand Down
2 changes: 1 addition & 1 deletion jal/widgets/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, language):
self.reportsGroup = QActionGroup(self.ui.menuReports)
self.createReportsMenu()

self.setWindowIcon(load_icon("jal.png"))
self.setWindowIcon(JalIcon[JalIcon.APP_MAIN])

self.connect_signals_and_slots()

Expand Down

0 comments on commit 2f1f976

Please sign in to comment.