Revert "fix: macOS Media Control not activated & remove Background Play switch on desktop (#1872)"

This reverts commit 8f00ca5680.
This commit is contained in:
dom
2026-04-19 20:18:14 +08:00
parent 82483b33fc
commit 62c2c081d9
3 changed files with 15 additions and 21 deletions

View File

@@ -183,14 +183,13 @@ List<SettingsModel> get playSettings => [
defaultVal: true,
onChanged: (value) => allowRotateScreen = value,
),
if (PlatformUtils.isMobile)
const SwitchModel(
title: '后台播放',
subtitle: '进入后台时继续播放',
leading: Icon(Icons.motion_photos_pause_outlined),
setKey: SettingBoxKey.continuePlayInBackground,
defaultVal: false,
),
const SwitchModel(
title: '后台播放',
subtitle: '进入后台时继续播放',
leading: Icon(Icons.motion_photos_pause_outlined),
setKey: SettingBoxKey.continuePlayInBackground,
defaultVal: false,
),
if (Platform.isAndroid) ...[
SwitchModel(
title: '后台画中画',