You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Quit anyway still waits for the work before the power button #155
workFirst offers Quit anyway with the detail "If the app quits now, no profile is made and the VM is not started again", and returns true for it. But if a VM is also running, the quit then goes through shutDownAllAndQuit, which does await this.workDone(n) per VM before pressing the power button (src/main/quitFlow.ts).
So Quit anyway with a profile save going waits for that save anyway, which can be minutes, and the app looks stuck: the window is in the tray, the tray says "Shutting down, quits when the VMs are off", and nothing says it is waiting for the save the user just said to abandon.
The per-VM wait is right when the user picked Shut down VMs and quit (a power button press in the middle of a hibernate turns it into a plain shutdown, see #121). It is wrong after Quit anyway.
Idea: have the quit path carry which answer it came from and skip workDone for Quit anyway, going straight to the power button or straight to the quit. tests/quitFlow.test.ts can cover both orderings with the fake host.
Activity