Got to where all I have to do is hook up the cache manager

This commit is contained in:
Sumner Evans
2020-04-06 00:05:13 -06:00
parent 8b9098b217
commit bd7336c96f
6 changed files with 33 additions and 30 deletions

View File

@@ -73,11 +73,9 @@ class MainWindow(Gtk.ApplicationWindow):
def update(self, app_config: AppConfiguration, force: bool = False):
# Update the Connected to label on the popup menu.
if app_config.current_server >= 0:
server_name = app_config.servers[
app_config.current_server].name
if app_config.server:
self.connected_to_label.set_markup(
f'<b>Connected to {server_name}</b>')
f'<b>Connected to {app_config.server.name}</b>')
else:
self.connected_to_label.set_markup(
f'<span style="italic">Not Connected to a Server</span>')