Skip to content

Commit

Permalink
Merge pull request #144 from Yutsuten/display-version
Browse files Browse the repository at this point in the history
Show version number in global settings title
  • Loading branch information
Yutsuten authored Aug 12, 2022
2 parents 7ff18c5 + 5194db9 commit 6556ffd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from operator import itemgetter

from .defaults import POSITION_OPTIONS, STYLE_OPTIONS, TEXT_FORMAT, BEHAVIORS
from .version import VERSION


class Form:
Expand Down Expand Up @@ -242,7 +243,7 @@ def save():

conf = config.get()
dialog = aqt.QDialog(main_window)
dialog.setWindowTitle('Life Drain Global Settings')
dialog.setWindowTitle(f'Life Drain Global Settings (v{VERSION})')

basic_tab = _global_basic_tab(aqt, conf)
bar_style_tab = _global_bar_style_tab(aqt, conf)
Expand Down
6 changes: 6 additions & 0 deletions src/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""
Copyright (c) Yutsuten <https://github.com/Yutsuten>. Licensed under AGPL-3.0.
See the LICENCE file in the repository root for full licence text.
"""

VERSION = '2.6.0'

0 comments on commit 6556ffd

Please sign in to comment.