Skip to content

Commit

Permalink
✨ Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerluiz committed Aug 11, 2020
1 parent 3b0ac53 commit 54832f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function createWindow() {
if (global.on_the_road) {
updateActivity()
}
}, 500)
}, 100)
}
})

Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
<div class="modal-footer black-text">
<a
id="disableAccelerator"
class="modal-close waves-effect waves-red btn-flat btn-sm orange"
class="modal-close waves-effect waves-red btn-flat btn-sm orange left"
>Disable</a
>
<a
Expand Down
14 changes: 14 additions & 0 deletions src/providers/companionServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,20 @@ function execCmd(cmd, value) {
})
break

case 'track-play':
ipcMain.emit('media-command', {
command: 'media-play-pause',
value: true,
})
break

case 'track-pause':
ipcMain.emit('media-command', {
command: 'media-play-pause',
value: true,
})
break

case 'track-next':
ipcMain.emit('media-command', {
command: 'media-track-next',
Expand Down

0 comments on commit 54832f8

Please sign in to comment.