diff --git a/common/lkt.js b/common/lkt.js index 002858a8bb12a9da2901fd9da45c3ec6e7b22ff1..8ce65f7aa730630b77f9e829494dfdd723ced533 100644 --- a/common/lkt.js +++ b/common/lkt.js @@ -133,7 +133,7 @@ class LktClient { } static commandPlay() { return LktClient.__execSimple("play") }; - static commandPlay() { return LktClient.__execSimple("stop") }; + static commandStop() { return LktClient.__execSimple("stop") }; static commandPrev() { return LktClient.__execSimple("previous") }; static commandNext() { return LktClient.__execSimple("next") }; static commandShuffle() { return LktClient.__execSimple("shuffle") }; diff --git a/main.js b/main.js index 75d72cb0fa216338094befd5a13920e2f75d198b..8c7279cb749b6fc5d5baa6fd0b80e9e57c997a06 100644 --- a/main.js +++ b/main.js @@ -119,10 +119,10 @@ app.on('ready', () => { *********************************/ ipcMain.on("cmd-play", (event, arg) => { - logger.debug(`${event}: ${arg}`); + lkt.commandPlay().then( arg => { logger.debug("Returned from cmd-play"); } ) }); ipcMain.on("cmd-stop", (event, arg) => { - logger.debug(`${event}: ${arg}`); + lkt.commandStop().then( arg => { logger.debug("Returned from cmd-stop"); } ) }); /* Fill the pannel with the content of the DB.