fix(overlay): send session help commands before closing the modal

- Closing help first could destroy the dedicated modal window on Linux/Windows, dropping the IPC for the selected command
- dispatchConfiguredMpvCommand now returns a promise so help closes only after subtitle seek + re-pause are sent
- Add test asserting IPC order for a paused subtitle seek
This commit is contained in:
sudacode committed 2026-09-29 20:22:01 -07:00
1 parent 0bbd8617f4
commit e49b5f6589
4 files changed
+59 -22

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ export function createKeyboardHandlers(
}
if (binding.actionType === 'mpv-command') {
dispatchConfiguredMpvCommand(binding.command, {
void dispatchConfiguredMpvCommand(binding.command, {
getPlaybackPaused: options.getPlaybackPaused,
sendMpvCommand: (command) => window.electronAPI.sendMpvCommand(command),
});