mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 16:46:06 -08:00
feat(controller): route status messages through notifications
- Send controller connected and disabled messages over a new IPC channel so they follow ankiConnect.behavior.notificationType - Remove the separate controller status toast from the overlay - Only announce connected controllers when controller.enabled is on - Announce a controller again after it reconnects, and update usage docs
This commit is contained in:
15 files changed
+84
-167
No files matched your search
@@ -80,6 +80,7 @@ export interface MainIpcRuntimeServiceDepsParams {
|
||||
saveControllerConfig: IpcDepsRuntimeOptions['saveControllerConfig'];
|
||||
reportActiveController: IpcDepsRuntimeOptions['reportActiveController'];
|
||||
getActiveControllerId: IpcDepsRuntimeOptions['getActiveControllerId'];
|
||||
notifyControllerStatus: IpcDepsRuntimeOptions['notifyControllerStatus'];
|
||||
getSecondarySubMode: IpcDepsRuntimeOptions['getSecondarySubMode'];
|
||||
getMpvClient: IpcDepsRuntimeOptions['getMpvClient'];
|
||||
runSubsyncManual: IpcDepsRuntimeOptions['runSubsyncManual'];
|
||||
@@ -260,6 +261,7 @@ export function createMainIpcRuntimeServiceDeps(
|
||||
saveControllerConfig: params.saveControllerConfig,
|
||||
reportActiveController: params.reportActiveController,
|
||||
getActiveControllerId: params.getActiveControllerId,
|
||||
notifyControllerStatus: params.notifyControllerStatus,
|
||||
focusMainWindow: params.focusMainWindow ?? (() => {}),
|
||||
activatePlaybackWindowForOverlayInteraction: params.activatePlaybackWindowForOverlayInteraction,
|
||||
getSecondarySubMode: params.getSecondarySubMode,
|
||||
|
||||
Reference in new issue
Block a user