Skip to content

Commit 95a5425

Browse files
committed
fix: hide queue and lyrics button for radio streams
1 parent 2238154 commit 95a5425

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

lib/database/radio_stations.db.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ List<RadioStation> radioStationsDB = [
4141
const RadioStation(
4242
id: 'r_bigfm',
4343
name: 'bigFM',
44-
image: 'https://upload.wikimedia.org/wikipedia/de/f/f4/BigFM.svg',
44+
image:
45+
'https://file.atsw.de/production/static/1783676137495/ab66799083e298839f274a7a8dd9fa15.svg',
4546
streamUrl: 'https://stream.bigfm.de/deutschland/mp3-128/',
4647
genre: 'Pop',
4748
),

lib/widgets/now_playing/bottom_actions_row.dart

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class _BottomActionsRowState extends State<BottomActionsRow> {
162162
),
163163
tooltip: l10n.addToPlaylist,
164164
),
165-
if (queue.isNotEmpty && !widget.isLargeScreen)
165+
if (queue.isNotEmpty && !isRadioStation && !widget.isLargeScreen)
166166
_buildSimpleActionButton(
167167
context: context,
168168
icon: FluentIcons.apps_list_24_filled,
@@ -175,14 +175,15 @@ class _BottomActionsRowState extends State<BottomActionsRow> {
175175
tooltip: l10n.queue,
176176
),
177177
if (!offlineMode.value) ...[
178-
_buildSimpleActionButton(
179-
context: context,
180-
icon: FluentIcons.text_quote_24_regular,
181-
colorScheme: colorScheme,
182-
size: responsiveIconSize,
183-
onPressed: widget.lyricsController.flipcard,
184-
tooltip: l10n.lyrics,
185-
),
178+
if (!isRadioStation)
179+
_buildSimpleActionButton(
180+
context: context,
181+
icon: FluentIcons.text_quote_24_regular,
182+
colorScheme: colorScheme,
183+
size: responsiveIconSize,
184+
onPressed: widget.lyricsController.flipcard,
185+
tooltip: l10n.lyrics,
186+
),
186187
_buildActionButton(
187188
context: context,
188189
icon: FluentIcons.heart_24_regular,

0 commit comments

Comments
 (0)