Skip to content

Commit eaecde2

Browse files
Update 1.4.2
- if an update is available, the user now gets a download prompt regardless of token validity
1 parent 8dc0897 commit eaecde2

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@ def cookie_setup():
155155
print('Checking for updates...')
156156
update_check_result, new_update_version = check_for_update()
157157

158+
if update_check_result == UpdateCheckResult.UPDATE_AVAILABLE:
159+
clear_console()
160+
print_file('files/logo.txt')
161+
cprint(f'\nNEW VERSION AVAILABLE: {new_update_version}\n'
162+
f'Changelog: https://github.com/InitialPosition/pyJAMa/releases/tag/v{new_update_version}\n', 'white',
163+
'on_green')
164+
165+
update_now_selection = input('Update now? (Y: Yes, N: No) > ')
166+
if update_now_selection.upper() == 'Y':
167+
download_update(new_update_version)
168+
exit()
169+
158170
# if a config exists, load it
159171
if isfile(CONFIG_FILE):
160172
config_data = load_config()

util/CONSTANTS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CONFIG_FILE = 'config.yml'
2-
VERSION = '1.4.1'
2+
VERSION = '1.4.2'
33
AUTHOR = 'InitialPosition / RedCocoa'

0 commit comments

Comments
 (0)