require login for note (#13775)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2025-12-20 16:51:25 +08:00
committed by GitHub
parent d6463f95b9
commit 4f2aea65ab
5 changed files with 46 additions and 2 deletions

View File

@@ -566,6 +566,13 @@ class _GeneralState extends State<_General> {
'note-at-conn-end-tip',
kOptionAllowAskForNoteAtEndOfConnection,
isServer: false,
optSetter: (key, value) async {
if (value && !gFFI.userModel.isLogin) {
final res = await loginDialog();
if (res != true) return;
}
await mainSetLocalBoolOption(key, value);
},
));
return _Card(title: 'Other', children: children);
}