Better way to hide audio widget
This commit is contained in:
@@ -32,8 +32,7 @@ from constants import (Constants,
|
|||||||
Database,
|
Database,
|
||||||
ChecksumWhat,
|
ChecksumWhat,
|
||||||
Messages,
|
Messages,
|
||||||
Signal,
|
Signal,)
|
||||||
MainTabs,)
|
|
||||||
from themesmanager import ThemeManager
|
from themesmanager import ThemeManager
|
||||||
from utilities import (checksum_ok,
|
from utilities import (checksum_ok,
|
||||||
uncheck_and_emit,
|
uncheck_and_emit,
|
||||||
@@ -541,8 +540,7 @@ class Artemis(QMainWindow, Ui_MainWindow):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def hide_show_right_widget(self):
|
def hide_show_right_widget(self):
|
||||||
"""Hide or show the waterfall+audio widget based on the current tab."""
|
if self.main_tab.currentWidget() == self.forecast_tab:
|
||||||
if self.main_tab.currentIndex() == MainTabs.FORECAST:
|
|
||||||
self.fixed_audio_and_image.setVisible(False)
|
self.fixed_audio_and_image.setVisible(False)
|
||||||
elif not self.fixed_audio_and_image.isVisible():
|
elif not self.fixed_audio_and_image.isVisible():
|
||||||
self.fixed_audio_and_image.setVisible(True)
|
self.fixed_audio_and_image.setVisible(True)
|
||||||
|
|||||||
@@ -5410,7 +5410,7 @@ www.qrg.globaltuners.com</string>
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="forecast_tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Rx/Tx Conditions</string>
|
<string>Rx/Tx Conditions</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
|||||||
@@ -4,15 +4,6 @@ import os.path
|
|||||||
from enum import IntEnum
|
from enum import IntEnum
|
||||||
|
|
||||||
|
|
||||||
class MainTabs(IntEnum):
|
|
||||||
"""The main tabs indeces."""
|
|
||||||
|
|
||||||
SIGNAL = 0
|
|
||||||
FILTERS = 1
|
|
||||||
GFD = 2
|
|
||||||
FORECAST = 3
|
|
||||||
|
|
||||||
|
|
||||||
class Ftype:
|
class Ftype:
|
||||||
"""Container class to differentiate between frequency and band.
|
"""Container class to differentiate between frequency and band.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user