opt: save rcmd

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-10 18:35:09 +08:00
parent 7b3d132802
commit 69463d4945
3 changed files with 26 additions and 20 deletions

View File

@@ -1136,7 +1136,11 @@ List<SettingsModel> get recommendSettings => [
defaultVal: true,
onChanged: (value) {
try {
Get.find<RcmdController>().savedRcmdTip = value;
RcmdController ctr = Get.find<RcmdController>();
ctr.savedRcmdTip = value;
if (value.not) {
ctr.lastRefreshAt = null;
}
} catch (e) {
debugPrint('$e');
}