File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
src/plugins/global-keybinds Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- import { globalShortcut , ipcMain , type MenuItem } from 'electron' ;
1+ import { globalShortcut , ipcMain } from 'electron' ;
22import prompt , { type KeybindOptions } from 'custom-electron-prompt' ;
33import { eventRace } from './utils' ;
44
@@ -7,7 +7,6 @@ import { createPlugin } from '@/utils';
77import promptOptions from '@/providers/prompt-options' ;
88import { onPlayerApiReady } from './renderer' ;
99import { t } from '@/i18n' ;
10- import { restart } from '@/providers/app-controls' ;
1110
1211export type GlobalKeybindsPluginConfig = {
1312 enabled : boolean ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function $<E extends Element = Element>(selector: string) {
99
1010let api : MusicPlayer ;
1111
12- export const onPlayerApiReady = async (
12+ export const onPlayerApiReady = (
1313 playerApi : MusicPlayer ,
1414 context : RendererContext < GlobalKeybindsPluginConfig > ,
1515) => {
Original file line number Diff line number Diff line change 11export function eventRace (
2- { single, double } : { single : Function ; double : Function } ,
2+ { single, double } : { single : ( ) => void ; double : ( ) => void } ,
33 time = 200 ,
44) {
55 let timeout : NodeJS . Timeout | null = null ;
You can’t perform that action at this time.
0 commit comments