clan-vm-manager: Add register_on_change to GKVStore. Improve overall signal typing.

This commit is contained in:
Qubasa
2024-03-06 15:05:10 +07:00
parent b9ae911246
commit fb21a7378d
7 changed files with 75 additions and 62 deletions

View File

@@ -1,6 +1,5 @@
import logging
import threading
from typing import Any
import gi
from clan_cli.history.list import list_history
@@ -69,7 +68,7 @@ class MainWindow(Adw.ApplicationWindow):
log.debug("Killing all VMs")
ClanStore.use().kill_all()
def on_destroy(self, *_args: Any) -> None:
def on_destroy(self, source: "Adw.ApplicationWindow") -> None:
log.info("====Destroying Adw.ApplicationWindow===")
ClanStore.use().kill_all()
self.tray_icon.destroy()