Compare commits

...

1 Commits

Author SHA1 Message Date
dom
62c2c081d9 Revert "fix: macOS Media Control not activated & remove Background Play switch on desktop (#1872)"
This reverts commit 8f00ca5680.
2026-04-19 20:18:14 +08:00
3 changed files with 15 additions and 21 deletions

View File

@@ -123,8 +123,6 @@ void main() async {
), ),
); );
} }
} else if (Platform.isMacOS) {
await setupServiceLocator();
} }
Request(); Request();

View File

@@ -183,7 +183,6 @@ List<SettingsModel> get playSettings => [
defaultVal: true, defaultVal: true,
onChanged: (value) => allowRotateScreen = value, onChanged: (value) => allowRotateScreen = value,
), ),
if (PlatformUtils.isMobile)
const SwitchModel( const SwitchModel(
title: '后台播放', title: '后台播放',
subtitle: '进入后台时继续播放', subtitle: '进入后台时继续播放',

View File

@@ -565,16 +565,13 @@ class HeaderControlState extends State<HeaderControl>
); );
}, },
), ),
if (PlatformUtils.isMobile)
Obx( Obx(
() => ActionRowLineItem( () => ActionRowLineItem(
iconData: Icons.play_circle_outline, iconData: Icons.play_circle_outline,
onTap: onTap: plPlayerController.setContinuePlayInBackground,
plPlayerController.setContinuePlayInBackground,
text: " 后台播放 ", text: " 后台播放 ",
selectStatus: plPlayerController selectStatus:
.continuePlayInBackground plPlayerController.continuePlayInBackground.value,
.value,
), ),
), ),
], ],