Better way to hide audio widget

This commit is contained in:
alessandro90
2019-07-02 23:26:45 +02:00
parent 14ee4fd148
commit f9a05b42a7
3 changed files with 3 additions and 14 deletions

View File

@@ -32,8 +32,7 @@ from constants import (Constants,
Database,
ChecksumWhat,
Messages,
Signal,
MainTabs,)
Signal,)
from themesmanager import ThemeManager
from utilities import (checksum_ok,
uncheck_and_emit,
@@ -541,8 +540,7 @@ class Artemis(QMainWindow, Ui_MainWindow):
@pyqtSlot()
def hide_show_right_widget(self):
"""Hide or show the waterfall+audio widget based on the current tab."""
if self.main_tab.currentIndex() == MainTabs.FORECAST:
if self.main_tab.currentWidget() == self.forecast_tab:
self.fixed_audio_and_image.setVisible(False)
elif not self.fixed_audio_and_image.isVisible():
self.fixed_audio_and_image.setVisible(True)