File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,18 @@ def cookie_setup():
155155print ('Checking for updates...' )
156156update_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'\n NEW 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
159171if isfile (CONFIG_FILE ):
160172 config_data = load_config ()
Original file line number Diff line number Diff line change 11CONFIG_FILE = 'config.yml'
2- VERSION = '1.4.1 '
2+ VERSION = '1.4.2 '
33AUTHOR = 'InitialPosition / RedCocoa'
You can’t perform that action at this time.
0 commit comments