mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 12:10:33 +08:00
cache desktop volume
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -144,7 +144,8 @@ abstract class SettingBoxKey {
|
||||
windowSize = 'windowSize',
|
||||
windowPosition = 'windowPosition',
|
||||
isWindowMaximized = 'isWindowMaximized',
|
||||
showWindowTitleBar = 'showWindowTitleBar';
|
||||
showWindowTitleBar = 'showWindowTitleBar',
|
||||
desktopVolume = 'desktopVolume';
|
||||
|
||||
static const String subtitlePreferenceV2 = 'subtitlePreferenceV2',
|
||||
enableDragSubtitle = 'enableDragSubtitle',
|
||||
|
||||
@@ -844,4 +844,7 @@ abstract class Pref {
|
||||
|
||||
static bool get showWindowTitleBar =>
|
||||
_setting.get(SettingBoxKey.showWindowTitleBar, defaultValue: true);
|
||||
|
||||
static double get desktopVolume =>
|
||||
_setting.get(SettingBoxKey.desktopVolume, defaultValue: 1.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user