opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -572,7 +572,7 @@ class GStorage {
..replyLengthLimit = replyLengthLimit;
}
static Future<String> exportAllSettings() async {
static String exportAllSettings() {
return jsonEncode({
setting.name: setting.toMap(),
video.name: video.toMap(),
@@ -599,7 +599,7 @@ class GStorage {
..registerAdapter(RuleFilterAdapter());
}
static Future<void> close() async {
static void close() {
// user.compact();
// user.close();
userInfo
@@ -915,7 +915,7 @@ class Accounts {
}
}
static Future<void> refresh() async {
static void refresh() {
for (var a in account.values) {
for (var t in a.type) {
accountMode[t] = a;
@@ -938,7 +938,7 @@ class Accounts {
// Request.buvidActive(AnonymousAccount());
}
static Future<void> close() async {
static void close() {
account
..compact()
..close();