mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 05:16:01 +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(),
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user