From 896846b2657709c6c7bdfb579de6e20f0fdc7b52 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Mon, 27 Dec 2010 13:18:56 +0500 Subject: [PATCH] Block button when freewheel mode is set by side application / utility. --- jacktimectl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jacktimectl b/jacktimectl index c4c26eb..693a03f 100644 --- a/jacktimectl +++ b/jacktimectl @@ -16,11 +16,14 @@ def on_button_toggled(button): jack.set_freewheel(1) else: button.set_label(text_generic+text_rtwheel) + button.set_sensitive(True) jack.set_freewheel(0) def timeout(): if jack.get_freewheel() > 0: - button.set_active(True) + if button.get_active() == False: + button.set_active(True) + button.set_sensitive(False) else: button.set_active(False) -- 2.11.4.GIT