From 80daaf454d8381f170ac0a101956c42398ffd041 Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Wed, 29 Jul 2026 18:23:22 +0100 Subject: [PATCH] Added connecting status --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 19c9d08..fa3faf8 100644 --- a/main.py +++ b/main.py @@ -154,6 +154,7 @@ def mountDisk(state: AppState) -> None: ["mkdir", "-p", f"/mnt/{state.config.diskSerial}"], check=True, ) + sleep(0.5) subprocess.run( [ "mount", @@ -164,6 +165,7 @@ def mountDisk(state: AppState) -> None: ], check=True, ) + sleep(0.5) except subprocess.CalledProcessError: pass else: @@ -179,6 +181,7 @@ def unmountDisk(state: AppState) -> None: ], check=True, ) + print("unmounting disk") except subprocess.CalledProcessError: pass else: @@ -230,6 +233,7 @@ def main() -> None: and event.event == "connected" and event.serial == state.config.diskSerial ): + state.diskState == "connecting" mountDisk(state) except Empty: