Skip to content

Commit

Permalink
Tiny tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketok4321 committed Sep 4, 2023
1 parent 5bdbb46 commit eba303b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self):
self.servers = None
self.win = None

self.create_action("quit", lambda *_: self.quit(), ["<primary>q"])
self.create_action("quit", lambda *_: self.quit(), ["<primary>q", "<primary>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)
Expand Down
2 changes: 1 addition & 1 deletion src/speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/offline.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand Down
8 changes: 3 additions & 5 deletions src/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

0 comments on commit eba303b

Please sign in to comment.