opt `FollowingsFollowedUpper` url

Closes #1061
Closes #1062

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-21 14:07:18 +08:00
parent b6ce93cbd2
commit ba14e56ceb
7 changed files with 37 additions and 20 deletions

View File

@@ -244,6 +244,7 @@ Commit Hash: ${BuildConfig.commitHash}''',
if (Accounts.main.isLogin) {
await LoginUtils.onLoginMain();
}
return true;
},
),
),
@@ -313,7 +314,7 @@ Future<void> showInportExportDialog<T>(
required String title,
String? label,
required String Function() toJson,
required FutureOr<void> Function(T json) fromJson,
required FutureOr<bool> Function(T json) fromJson,
}) => showDialog(
context: context,
builder: (context) {
@@ -426,8 +427,9 @@ Future<void> showInportExportDialog<T>(
onPressed: () async {
Get.back();
try {
await fromJson(json);
SmartDialog.showToast('导入成功');
if (await fromJson(json)) {
SmartDialog.showToast('导入成功');
}
} catch (e) {
SmartDialog.showToast('导入失败:$e');
}