()
| 60 | |
| 61 | //MARK: top bar event |
| 62 | function topBarHandlers() { |
| 63 | MA.byIdEventIfExists('bottomBar-debug', () => { window.main_IPC.dispatch('debug') }) |
| 64 | MA.byIdEventIfExists('topBar-basegame', () => { window.main_IPC.dispatch('basegame') }) |
| 65 | MA.byIdEventIfExists('topBar-find', () => { window.main_IPC.dispatch('find') }) |
| 66 | MA.byIdEventIfExists('topBar-gamelog', () => { window.main_IPC.dispatch('gamelog') }) |
| 67 | MA.byIdEventIfExists('topBar-help', () => { window.main_IPC.dispatch('help') }) |
| 68 | MA.byIdEventIfExists('topBar-input', () => { window.main_IPC.dispatch('input') }) |
| 69 | MA.byIdEventIfExists('topBar-launch', () => { window.state.action.launchGame() }) |
| 70 | MA.byIdEventIfExists('topBar-mini', () => { window.main_IPC.dispatch('mini') }) |
| 71 | MA.byIdEventIfExists('topBar-preferences', () => { window.state.prefs.open() }) |
| 72 | MA.byIdEventIfExists('topBar-savemanage', () => { window.main_IPC.dispatch('savemanage') }) |
| 73 | MA.byIdEventIfExists('topBar-savetrack', () => { window.main_IPC.dispatch('savetrack') }) |
| 74 | MA.byIdEventIfExists('topBar-tray', () => { window.main_IPC.minimizeToTray() }) |
| 75 | MA.byIdEventIfExists('topBar-update', () => { window.main_IPC.updateApplication() }) |
| 76 | } |
| 77 | //MARK: side bar event |
| 78 | function sideBarHandlers() { |
| 79 | MA.byIdEventIfExists('moveButton_ver', () => { window.main_IPC.dispatch('version') }) |
no test coverage detected