cache desktop volume

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-02 10:50:56 +08:00
parent 8c7db34e5a
commit 5d5adbc73f
3 changed files with 14 additions and 2 deletions

View File

@@ -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',

View File

@@ -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);
}