From 7db7fb67b5361b786901ca60f7d8e7017a395b61 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Mon, 15 Jun 2020 17:22:53 +0200 Subject: [PATCH] Compatibility fix --- src/modules/TimerOndemand.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/TimerOndemand.js b/src/modules/TimerOndemand.js index 521317c..fe7d3a1 100644 --- a/src/modules/TimerOndemand.js +++ b/src/modules/TimerOndemand.js @@ -88,9 +88,9 @@ var TimerOndemand = class { }); this._button = new panelMenu.Button(0.0); - let button_actor = get_actor(this._button); + const button_actor = get_actor(this._button); button_actor.add_actor(this._icon); - this._button.connect( + button_actor.connect( 'button-press-event', this._toggle_time.bind(this) );