Skip to content

Commit

Permalink
style: Update window title to include version
Browse files Browse the repository at this point in the history
e.g. "VARS GridView v0.5.4"
  • Loading branch information
kevinsbarnard committed Nov 30, 2023
1 parent 06802fd commit c6a50d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vars_gridview/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import sys
import traceback
import webbrowser
from importlib import metadata
from pathlib import Path
from time import sleep
from typing import Optional, Tuple
Expand Down Expand Up @@ -105,7 +106,9 @@ def __init__(self, app):
self.ui.setupUi(self)

# Set the window title
self.setWindowTitle(constants.APP_NAME)
self.setWindowTitle(
f"{constants.APP_NAME} v{metadata.version('vars_gridview')}"
)
self.setWindowIcon(
QtGui.QIcon(str(ICONS_DIR / "VARSGridView.iconset" / "icon_256x256.png"))
)
Expand Down

0 comments on commit c6a50d5

Please sign in to comment.