Merge branch 'matt-faster-connectivity-checl' into 'main'

Change internet check to Arch's captive portal check (loads faster)

See merge request crystal/software/jade-gui!6
main
axtloss 2 years ago
commit 9ee033eef5

@ -46,7 +46,7 @@ class WelcomeScreen(JadeScreen, Adw.Bin):
def check_internet(self): def check_internet(self):
while self.do_check_internet: while self.do_check_internet:
try: try:
urllib.request.urlopen("https://getcryst.al", timeout=1) urllib.request.urlopen("https://ping.archlinux.org", timeout=1)
self.online() self.online()
if not self.next_button.get_sensitive(): if not self.next_button.get_sensitive():
GLib.idle_add(self.allow_continue, True) GLib.idle_add(self.allow_continue, True)

Loading…
Cancel
Save