mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
fix: macOS Media Control not activated & remove Background Play switch on desktop (#1872)
* fix: macOS Media Control not activated * fix: remove Background Play switch on desktop asdf Update lib/main.dart Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -565,15 +565,18 @@ class HeaderControlState extends State<HeaderControl>
|
||||
);
|
||||
},
|
||||
),
|
||||
Obx(
|
||||
() => ActionRowLineItem(
|
||||
iconData: Icons.play_circle_outline,
|
||||
onTap: plPlayerController.setContinuePlayInBackground,
|
||||
text: " 后台播放 ",
|
||||
selectStatus:
|
||||
plPlayerController.continuePlayInBackground.value,
|
||||
if (PlatformUtils.isMobile)
|
||||
Obx(
|
||||
() => ActionRowLineItem(
|
||||
iconData: Icons.play_circle_outline,
|
||||
onTap:
|
||||
plPlayerController.setContinuePlayInBackground,
|
||||
text: " 后台播放 ",
|
||||
selectStatus: plPlayerController
|
||||
.continuePlayInBackground
|
||||
.value,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user