Skip to content

Commit 6b35a3e

Browse files
committed
(tweak) Remove double check
1 parent a40da89 commit 6b35a3e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

BabbleApp/babbleapp.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -114,34 +114,6 @@ async def async_main():
114114
cancellation_event = threading.Event()
115115
ROSC = False
116116

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-
145117
timerResolution(True)
146118

147119
osc_queue: queue.Queue[tuple[bool, int, int]] = queue.Queue(maxsize=10)

0 commit comments

Comments
 (0)