fix(overlay): poll cheap playback state in the open subtitle sidebar (#290)

This commit is contained in:
sudacode committed 2026-10-11 01:02:02 -07:00
1 parent 6c295586cb
commit 9c351a8603
14 files changed
+286 -108

No files matched your search

+2
View File
@@ -294,6 +294,8 @@ const electronAPI: ElectronAPI = {
ipcRenderer.invoke(IPC_CHANNELS.request.getSubtitleSidebarOpen),
getSubtitleSidebarSnapshot: () =>
ipcRenderer.invoke(IPC_CHANNELS.request.getSubtitleSidebarSnapshot),
getSubtitleSidebarPlaybackState: () =>
ipcRenderer.invoke(IPC_CHANNELS.request.getSubtitleSidebarPlaybackState),
copySubtitleSidebarSelection: async (text: unknown) => {
if (typeof text !== 'string') throw new TypeError('Subtitle selection must be text.');
clipboard.writeText(text);