File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -114,34 +114,6 @@ async def async_main():
114
114
cancellation_event = threading .Event ()
115
115
ROSC = False
116
116
117
- if config .settings .gui_update_check :
118
- try :
119
- response = requests .get (
120
- "https://api.github.com/repos/Project-Babble/ProjectBabble/releases/latest"
121
- )
122
- latestversion = response .json ()["name" ]
123
-
124
- # If what we scraped and hardcoded versions are same, assume we are up to date.
125
- if appversion == latestversion :
126
- print (
127
- f'\033 [92m[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("babble.latestVersion" )} ! [{ latestversion } ]\033 [0m'
128
- )
129
- else :
130
- print (
131
- f'\033 [93m[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("babble.needUpdateOne" )} [{ appversion } ] { lang ._instance .get_string ("babble.needUpdateTwo" )} [{ latestversion } ] { lang ._instance .get_string ("babble.needUpdateThree" )} .\033 [0m'
132
- )
133
- try :
134
- # Run notification in a separate thread to avoid blocking
135
- await notification_manager .show_notification (latestversion )
136
- except Exception as e :
137
- print (
138
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("babble.noToast" )} Error: { e } '
139
- )
140
- except Exception as e :
141
- print (
142
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("babble.noInternet" )} . Error: { e } '
143
- )
144
-
145
117
timerResolution (True )
146
118
147
119
osc_queue : queue .Queue [tuple [bool , int , int ]] = queue .Queue (maxsize = 10 )
You can’t perform that action at this time.
0 commit comments