Skip to content
Extraits de code Groupes Projets
Vérifiée Valider beadde04 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

INSTANCE: Can now interact with lektord with simple commands

parent 1fb588d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
2 requêtes de fusion!3Dev kubat,!2Base interface and system
......@@ -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") };
......
......@@ -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.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter