mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
tweaks (#1846)
* opt: live extra * opt: remove addPointer * opt: use ssd * opt: cache svg * opt: localToGlobal * opt: disabled icon * opt: onVideoDetailChange switch * fix --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
4a3d827f7a
commit
e707764f84
@@ -1,5 +1,4 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:PiliPlus/models/model_owner.dart';
|
||||
import 'package:PiliPlus/models/user/danmaku_rule_adapter.dart';
|
||||
@@ -62,11 +61,6 @@ abstract final class GStorage {
|
||||
]);
|
||||
}
|
||||
|
||||
static Future<File> syncToDisk([_]) {
|
||||
final jsonPath = path.join(appSupportDirPath, 'settings.json');
|
||||
return File(jsonPath).writeAsString(exportAllSettings());
|
||||
}
|
||||
|
||||
static String exportAllSettings() {
|
||||
return Utils.jsonEncoder.convert({
|
||||
setting.name: setting.toMap(),
|
||||
|
||||
Reference in New Issue
Block a user