* 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:
My-Responsitories
2026-02-25 18:01:43 +08:00
committed by GitHub
parent 4a3d827f7a
commit e707764f84
19 changed files with 159 additions and 238 deletions

View File

@@ -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(),

View File

@@ -157,8 +157,7 @@ abstract final class SettingBoxKey {
showWindowTitleBar = 'showWindowTitleBar',
desktopVolume = 'desktopVolume',
showTrayIcon = 'showTrayIcon',
uiScale = 'uiScale',
useSSD = 'useSSD';
uiScale = 'uiScale';
static const String subtitlePreferenceV2 = 'subtitlePreferenceV2',
enableDragSubtitle = 'enableDragSubtitle',

View File

@@ -914,9 +914,6 @@ abstract final class Pref {
static bool get showWindowTitleBar =>
_setting.get(SettingBoxKey.showWindowTitleBar, defaultValue: true);
static bool get useSSD =>
_setting.get(SettingBoxKey.useSSD, defaultValue: false);
static double get desktopVolume =>
_setting.get(SettingBoxKey.desktopVolume, defaultValue: 1.0);