From 296a49b55fe5e22938a141449f2fe50a239676a2 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Mon, 28 Dec 2020 10:42:05 +0100 Subject: [PATCH] Connect on-demand panel button to touch event --- src/modules/TimerOndemand.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/TimerOndemand.js b/src/modules/TimerOndemand.js index 2be2748..c246d90 100644 --- a/src/modules/TimerOndemand.js +++ b/src/modules/TimerOndemand.js @@ -184,9 +184,8 @@ var TimerOndemand = class { this._button.update = () => { icon.gicon = this._getIconForTime(e.timer.time); }; - buttonActor.connect('button-press-event', () => { - this._toggleTime(); - }); + buttonActor.connect('button-press-event', () => this._toggleTime()); + buttonActor.connect('touch-event', () => this._toggleTime()); main.panel.addToStatusArea('NightThemeSwitcherButton', this._button); logDebug('Added On-demand Timer button to the panel.'); }