Re-enable status line messages re play controls enabled/disabled
This commit is contained in:
parent
4714364517
commit
92320c8922
@ -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("")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user