diff --git a/extension.js b/extension.js index 4d48eb8..955a0af 100644 --- a/extension.js +++ b/extension.js @@ -203,13 +203,25 @@ const enable = () => { }); buttonNext.set_child(iconNext); - buttonNext.connect("button-release-event", () => playerAction(currentPlayer, "next")); + buttonNext.connect("button-release-event", () => { + (() => { + playerAction(currentPlayer, "next"); + })(); + }); buttonPrev.set_child(iconPrev); - buttonPrev.connect("button-release-event", () => playerAction(currentPlayer, "previous")); + buttonPrev.connect("button-release-event", () => { + (() => { + playerAction(currentPlayer, "previous"); + })(); + }); buttonToggle.set_child(iconPlay); - buttonToggle.connect("button-release-event", () => playerAction(currentPlayer, "toggle")); + buttonToggle.connect("button-release-event", () => { + (() => { + playerAction(currentPlayer, "toggle"); + })(); + }); buttonPlayer.set_child(iconPlayer); buttonPlayer.connect("button-release-event", mouseAction); diff --git a/metadata.json b/metadata.json index 5a47156..c240ca9 100644 --- a/metadata.json +++ b/metadata.json @@ -9,5 +9,5 @@ ], "url": "https://github.com/cliffniff/media-controls", "uuid": "mediacontrols@cliffniff.github.com", - "version": 8 + "version": 9 } \ No newline at end of file