From 92320c8922da6a3e39b83154ca2f9555962ac9fa Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 5 Apr 2024 10:21:26 +0100 Subject: [PATCH] Re-enable status line messages re play controls enabled/disabled --- app/musicmuster.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/musicmuster.py b/app/musicmuster.py index 8864f46..9ab262a 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1143,6 +1143,7 @@ class Window(QMainWindow, Ui_MainWindow): # Disable play next controls self.catch_return_key = True + self.show_status_message("Play controls: Disabled", 0) # Notify model self.active_proxy_model().current_track_started() @@ -1477,6 +1478,7 @@ class Window(QMainWindow, Ui_MainWindow): # Enable controls self.catch_return_key = False + self.show_status_message("Play controls: Enabled", 0) def tab_change(self): """Called when active tab changed""" @@ -1557,6 +1559,7 @@ class Window(QMainWindow, Ui_MainWindow): if self.frame_silent.styleSheet() != css_silence: self.frame_silent.setStyleSheet(css_silence) self.catch_return_key = False + self.show_status_message("Play controls: Enabled", 0) # Set warning colour on time to silence box when fade starts elif time_to_fade <= 500: css_fade = f"background: {Config.COLOUR_WARNING_TIMER}" @@ -1569,6 +1572,7 @@ class Window(QMainWindow, Ui_MainWindow): f"background: {Config.COLOUR_WARNING_TIMER}" ) self.catch_return_key = False + self.show_status_message("Play controls: Enabled", 0) else: self.frame_silent.setStyleSheet("") self.frame_fade.setStyleSheet("")