mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
fix: update filter
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1434,7 +1434,9 @@ List<SettingsModel> get recommendSettings => [
|
|||||||
leading: const Icon(Icons.favorite_border_outlined),
|
leading: const Icon(Icons.favorite_border_outlined),
|
||||||
setKey: SettingBoxKey.exemptFilterForFollowed,
|
setKey: SettingBoxKey.exemptFilterForFollowed,
|
||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
onChanged: (_) => {RecommendFilter.update},
|
onChanged: (value) {
|
||||||
|
RecommendFilter.exemptFilterForFollowed = value;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
@@ -1443,7 +1445,9 @@ List<SettingsModel> get recommendSettings => [
|
|||||||
leading: const Icon(Icons.explore_outlined),
|
leading: const Icon(Icons.explore_outlined),
|
||||||
setKey: SettingBoxKey.applyFilterToRelatedVideos,
|
setKey: SettingBoxKey.applyFilterToRelatedVideos,
|
||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
onChanged: (_) => {RecommendFilter.update},
|
onChanged: (value) {
|
||||||
|
RecommendFilter.applyFilterToRelatedVideos = value;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user