feat(catalogue): tune a single-station catalogue on switch
This commit is contained in:
1 parent
0219df454c
commit
5eb60d378c
3 files changed
+79
-2
No files matched your search
+7
-1
@@ -1035,7 +1035,13 @@ class BeefyPlayerApp(App[None]):
|
||||
self.query_one(HeaderBar).refresh()
|
||||
self.query_one(StagePanel).refresh_stage()
|
||||
self.query_one(StatusBar).refresh()
|
||||
self._set_notice(f"catalogue: {provider.name}", 3)
|
||||
|
||||
if self.audio_enabled and len(stations) == 1 and self.current is not None:
|
||||
# A catalogue with one station has nothing to choose between:
|
||||
# switching to it is the same as tuning it.
|
||||
self._tune(self.current)
|
||||
else:
|
||||
self._set_notice(f"catalogue: {provider.name}", 3)
|
||||
|
||||
if not self.offline:
|
||||
self._refresh_stations()
|
||||
|
||||
Reference in new issue
Block a user