Skip to content

Commit

Permalink
Show the app version in the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Feb 10, 2024
1 parent 644211c commit ce0172e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from queue import Empty, Queue
from subprocess import run, Popen, DEVNULL
from threading import Thread
from pkg_resources import get_distribution

import rumps

Expand Down Expand Up @@ -37,7 +38,7 @@

# change ~/Library to include-only


VERSION = get_distribution('thriftybackup').version
CHECK_INTERVAL = 5 * 60 # 5 minutes


Expand Down Expand Up @@ -158,6 +159,7 @@ def idle(self):
self.add_menuitem('Edit configuration', self.edit_config_file, ',')
self.add_menuitem('Install command-line tool', self.install_thrifty, 'c')
self.add_menuitem('Quit', self.quit, 'q')
self.add_menuitem(f'Version {VERSION}')
self._idling = True

@interface
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

setup(
name='ThriftyBackup',
version='0.0.2',
app=['app.py'],
data_files=['rclone.icns'],
options={'py2app': OPTIONS},
Expand Down

0 comments on commit ce0172e

Please sign in to comment.