clan_vm_manager: Fix switch desync when pressed too fast. Secrets folder shared between build and run. clan_cli: run_vm now can have custom tmpdir location

This commit is contained in:
Qubasa
2024-03-06 16:32:19 +07:00
parent ff8d08e4e4
commit 0e8622c491
4 changed files with 86 additions and 67 deletions

View File

@@ -54,7 +54,8 @@ class MainApplication(Adw.Application):
def on_shutdown(self, source: "MainApplication") -> None:
log.debug("Shutting down Adw.Application")
log.debug(f"get_windows: {self.get_windows()}")
if self.get_windows() == []:
log.warning("No windows to destroy")
if self.window:
# TODO: Doesn't seem to raise the destroy signal. Need to investigate
# self.get_windows() returns an empty list. Desync between window and application?