diff --git a/src/main.py b/src/main.py index cca7a6f..8ebb48a 100644 --- a/src/main.py +++ b/src/main.py @@ -21,7 +21,7 @@ def __init__(self): self.servers = None self.win = None - self.create_action("quit", lambda *_: self.quit(), ["q"]) + self.create_action("quit", lambda *_: self.quit(), ["q", "w"]) self.create_action("about", self.on_about_action) self.create_action("start", self.on_start_action) self.create_action("back", self.on_back_action) diff --git a/src/speedtest.py b/src/speedtest.py index a3a407f..24a76f3 100644 --- a/src/speedtest.py +++ b/src/speedtest.py @@ -81,7 +81,7 @@ async def check_server(server): except (aiohttp.ClientError, asyncio.TimeoutError): server.ping = -1 -async def ping(server): #TODO: jitter and other stuff +async def ping(server): async with aiohttp.ClientSession() as session: pings = [] jitters = [] diff --git a/src/ui/views/offline.blp b/src/ui/views/offline.blp index eab7fbc..e6b8108 100644 --- a/src/ui/views/offline.blp +++ b/src/ui/views/offline.blp @@ -7,7 +7,7 @@ template $OfflineView : Box { Adw.StatusPage { title: "Couldn't connect to the speedtest servers"; - description: "Make sure you are connected to the internet and try again."; + description: "Make sure you are connected to the internet"; icon-name: "network-offline-symbolic"; styles [ "compact" ] diff --git a/src/ui/window.blp b/src/ui/window.blp index 2784475..0b4abac 100644 --- a/src/ui/window.blp +++ b/src/ui/window.blp @@ -46,10 +46,8 @@ template $SpeedtestWindow : Adw.ApplicationWindow { } menu primary_menu { - section { - item { - label: _("_About Speedtest"); - action: "app.about"; - } + item { + label: "About Speedtest"; + action: "app.about"; } }