Display station name in window title

This commit is contained in:
Wiktor Zykubek 2023-07-11 18:38:44 +02:00
parent 8e1cdb76f0
commit 9d679ae20e
No known key found for this signature in database
GPG Key ID: 0DAA9DC01449FCA2

View File

@ -103,6 +103,7 @@ class MainWindow(QMainWindow):
stream_url = f"http://stream.open.fm/{e['id']}" stream_url = f"http://stream.open.fm/{e['id']}"
self.__player.setSource(QUrl(stream_url)) self.__player.setSource(QUrl(stream_url))
self.setWindowTitle(f"Open FM - {station}")
# Required to avoid crashing. For some reason if you want to change # Required to avoid crashing. For some reason if you want to change
# the station for the first time, you need to stop and resume playback. # the station for the first time, you need to stop and resume playback.