[Task]: No central connection-state guard on tab actions #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Most tab handlers call
self.i.write()or query methods directly and rely on exception handling if the instrument is not connected.Why this is a problem
Technically this works, because the exception is caught and logged, but the UI still allows actions that are guaranteed to fail.
That makes the tool feel rougher than necessary and creates avoidable error spam.
Fix approach
Add a helper such as:
and call it at the top of handlers that require an active instrument connection.
Optional follow-up:
Status
Still open.
Not fixed in the current v0.2 working copy.
No central connection-state guard on tab actionsto [Task]: No central connection-state guard on tab actions