Skip to content

Commit d854e6a

Browse files
committed
chore: fix super resolution page switch
1 parent 2f8e85a commit d854e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pages/settings/super_resolution_settings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class _SuperResolutionSettingsState extends State<SuperResolutionSettings> {
9595
description: const Text('关闭每次启用超分辨率时的提示'),
9696
initialValue: promptOnEnable,
9797
onToggle: (value) async {
98-
promptOnEnable = value ?? false;
98+
promptOnEnable = value ?? !promptOnEnable;
9999
await setting.put(
100100
SettingBoxKey.superResolutionWarn, promptOnEnable);
101101
if (mounted) setState(() {});

0 commit comments

Comments
 (0)