From 9d679ae20e44180d53754f3a98209bac15473ad2 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Tue, 11 Jul 2023 18:38:44 +0200 Subject: [PATCH] Display station name in window title --- openfm_qt/mainwindow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openfm_qt/mainwindow.py b/openfm_qt/mainwindow.py index f72174d..f8ce35d 100644 --- a/openfm_qt/mainwindow.py +++ b/openfm_qt/mainwindow.py @@ -103,6 +103,7 @@ class MainWindow(QMainWindow): stream_url = f"http://stream.open.fm/{e['id']}" self.__player.setSource(QUrl(stream_url)) + self.setWindowTitle(f"Open FM - {station}") # 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.