dash-frontend: fix `pinned_apps` not saving

This commit is contained in:
Aleksander 2026-07-25 18:34:51 +02:00
parent b4e2fd782c
commit 48da2ca416
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ use wlx_common::{
astr_containers::AStrMap,
config::{
AltModifier, CaptureMethod, ChromaKeyParams, GeneralConfig, HandsfreeAltTab,
HandsfreePointer, InputCaptureMethod, InputEmulationMethod, SerializedWindowSet,
HandsfreePointer, InputCaptureMethod, InputEmulationMethod, PinnedApp, SerializedWindowSet,
SerializedWindowStates,
},
config_io,
@ -181,6 +181,7 @@ pub struct AutoSettings {
pub capture_method: CaptureMethod,
pub keyboard_middle_click_mode: AltModifier,
pub autostart_apps: Vec<WvrProcessLaunchParams>,
pub pinned_apps: Vec<PinnedApp>,
pub handsfree_pointer: HandsfreePointer,
pub handsfree_alt_tab: HandsfreeAltTab,
pub language: Option<Language>,
@ -252,6 +253,7 @@ pub fn save_settings(config: &GeneralConfig) -> anyhow::Result<()> {
capture_method: config.capture_method,
keyboard_middle_click_mode: config.keyboard_middle_click_mode,
autostart_apps: config.autostart_apps.clone(),
pinned_apps: config.pinned_apps.clone(),
handsfree_pointer: config.handsfree_pointer,
handsfree_alt_tab: config.handsfree_alt_tab,
language: config.language,