diff --git a/artemis.py b/artemis.py index 1b7e687..9e2c3ff 100644 --- a/artemis.py +++ b/artemis.py @@ -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) diff --git a/artemis.ui b/artemis.ui index 14841ff..3db4986 100644 --- a/artemis.ui +++ b/artemis.ui @@ -5410,7 +5410,7 @@ www.qrg.globaltuners.com - + Rx/Tx Conditions diff --git a/constants.py b/constants.py index a6847e1..6e4291c 100644 --- a/constants.py +++ b/constants.py @@ -4,15 +4,6 @@ import os.path from enum import IntEnum -class MainTabs(IntEnum): - """The main tabs indeces.""" - - SIGNAL = 0 - FILTERS = 1 - GFD = 2 - FORECAST = 3 - - class Ftype: """Container class to differentiate between frequency and band.