fix(app): what is left of the virtual monitor's driver stays ours and can be removed from the screen
- a failed install forgets the driver (registry value, settings folder) only when its clean-up left no device and no package, and never when it was ours before; otherwise it stays ours and the error gives both the install's reason and that something is left to remove - the driver status separates a usable monitor (installed) from what this app left without one (leftover) and names the button (action): uninstall for both, so a removal whose package step failed can be retried from the features screen - pure rules after_failed_install and driver_status with unit tests; checked again on the win-ci VM: a declined install leaves nothing, then install and uninstall Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,4 +27,5 @@ fn main() {
|
||||
}
|
||||
assert_eq!(status.installed, action == "install");
|
||||
assert!(!status.other, "nothing this app made looks like another program's driver");
|
||||
assert!(!status.leftover, "nothing of this app's is left to clean up");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user