Set volumeHorizontalSlider position on init

This commit is contained in:
Wiktor Zykubek 2023-07-11 16:24:53 +02:00
parent 6a08d45677
commit 1a95171bb0
No known key found for this signature in database
GPG Key ID: 0DAA9DC01449FCA2

View File

@ -27,9 +27,11 @@ class MainWindow(QMainWindow):
self.__player = QMediaPlayer()
self.__audio = QAudioOutput()
self.__player.setAudioOutput(self.__audio)
self.setVolume(DEFAULT_VOLUME)
self.printGroups()
self.setVolume(DEFAULT_VOLUME)
self.ui.volumeHorizontalSlider.setValue(DEFAULT_VOLUME)
self.ui.groupsListWidget.itemClicked.connect(self.printStations)
self.ui.stationsListWidget.itemClicked.connect(self.playRadio)
self.ui.playbackToolButton.clicked.connect(self.togglePlayer)