A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
feat(dock): add option to show/hide Downloads in dock settings and update preferences handling
CristianOlivera1b55602b2856d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1102780..ad21a05 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,12 +10,13 @@ copia la sección de la versión que se publica a la release de GitHub.### English-- Added Dock settings for Start and Recycle Bin visibility, optional File Explorer+- Added Dock settings for Start, Downloads and Recycle Bin visibility, optional File Explorerpinning, three spacing presets with previews, and three auto-hide animationspeeds. Existing appearance and edge activation delays remain the defaults.-- Fixed the moon button: it toggles Muelle's Do Not Disturb without re-entering- the app state, shows its active state, and clears queued banners while keeping- unread badges. It does not change Windows Focus settings.+- Start, Downloads and Recycle Bin can also be hidden with "Remove from Dock"+ in their context menus. Settings refreshes their saved visibility on focus.+- Removed Muelle's moon shortcut from the menu bar. Do Not Disturb remains in+ Settings and clears queued banners while keeping unread badges.- Fixed the dock appearing over full-screen playback controls (#33). Full-screendetection now follows owned controls, distinguishes custom-frame maximizedwindows, and reacts to in-place size changes without permanent polling.@@ -46,12 +47,13 @@ copia la sección de la versión que se publica a la release de GitHub.### Español-- Añadidos ajustes del Dock para ocultar Inicio y Papelera, dejar de mantener+- Añadidos ajustes del Dock para ocultar Inicio, Descargas y Papelera, dejar de mantenerExplorador fijado, elegir tres espaciados con previsualización y tres velocidadesde animación al ocultar. Se conservan el aspecto y las esperas actuales por defecto.-- Corregida la luna: activa No molestar de Muelle sin volver a pedir prestado el- estado de la app, indica cuándo está activo y descarta banners pendientes sin- borrar insignias. No modifica la concentración de Windows.+- Inicio, Descargas y Papelera también se pueden ocultar con «Quitar del Dock»+ en sus menús contextuales. Ajustes refleja su visibilidad guardada al recuperar el foco.+- Retirado el acceso de luna de la barra superior. No molestar se mantiene en+ Ajustes y descarta banners pendientes sin borrar las insignias.- Corregido el dock que aparecía sobre los controles de reproducción en pantallacompleta (#33). La detección contempla controles flotantes vinculados a suventana, distingue ventanas maximizadas con marco propio y atiende cambios dediff --git a/apps/dock/src/app.rs b/apps/dock/src/app.rsindex a0adb38..b4593d0 100644--- a/apps/dock/src/app.rs+++ b/apps/dock/src/app.rs@@ -280,6 +280,7 @@ const CMD_UNGROUP: u32 = 15;const CMD_REMOVE_FOLDER: u32 = 16;const CMD_FORGET_RECENT: u32 = 17;const CMD_END_TASK: u32 = 18;+const CMD_HIDE_FIXED: u32 = 19;const CMD_WINDOW: u32 = 100;const MENU_WINDOWS: usize = 12;const MENU_TITLE_CHARS: usize = 60;@@ -971,6 +972,22 @@ fn forget_shortcuts_folder(config: &Config) -> Result<()> {Ok(())}+fn fixed_item_preference(role: Role) -> Option<&'static str> {+ match role {+ Role::Start => Some("showStart"),+ Role::Folder => Some("showDownloads"),+ Role::Trash => Some("showTrash"),+ _ => None,+ }+}++/// Hides only the shortcut. No folder, file or Windows pin is removed.+fn hide_fixed_item(path: &std::path::Path, role: Role) -> Result<Config> {+ let key = fixed_item_preference(role).context("el elemento no es un acceso fijo")?;+ let patch = serde_json::Map::from_iter([(key.to_owned(), serde_json::Value::Bool(false))]);+ Ok(muelle_config::update_preferences(path, patch)?)+}+fn shorten(text: &str, max: usize) -> String {if text.chars().count() <= max {text.to_owned()@@ -1078,7 +1095,9 @@ impl App {if let Some(folder) = &self.config.shortcuts_folder {entries.push(icon(folder, Role::Shortcuts, false));}- if let Some(downloads) = &self.downloads {+ if self.config.show_downloads+ && let Some(downloads) = &self.downloads+ {entries.push(icon(downloads, Role::Folder, false));}if self.config.show_trash {@@ -3739,6 +3758,10 @@ impl App {});}}+ if fixed_item_preference(role).is_some() {+ items.push(MenuItem::Separator);+ items.push(MenuItem::action(CMD_HIDE_FIXED, t.remove_from_dock));+ }(items, end_task)}@@ -3782,6 +3805,14 @@ impl App {None}CMD_SETTINGS => Some(Outside::OpenSettings),+ CMD_HIDE_FIXED => {+ let saved = hide_fixed_item(&muelle_config::default_path(), role)?;+ self.config.show_start = saved.show_start;+ self.config.show_downloads = saved.show_downloads;+ self.config.show_trash = saved.show_trash;+ self.refresh()?;+ None+ }CMD_FORGET_RECENT => {if self.roster.forget_recent(&id) {save_settings(&self.roster, &self.config);@@ -4147,22 +4178,6 @@ impl App {}}- fn toggle_dnd(&mut self) -> Result<()> {- let enabled = !self.config.notification_dnd;- let mut patch = serde_json::Map::new();- patch.insert("notificationDnd".into(), serde_json::Value::Bool(enabled));- muelle_config::update_preferences(&muelle_config::default_path(), patch)?;- self.config.notification_dnd = enabled;- if enabled {- self.notifications.clear_banners();- notification_banner::NotificationBannerView::hide();- }- if let Some(bar) = &mut self.menubar {- bar.set_dnd(&self.gfx, enabled)?;- }- Ok(())- }-fn sync_attention_visuals(&mut self) -> Result<()> {if let Some(stage) = &mut self.stage {stage.scene.set_attention(@@ -4399,7 +4414,6 @@ impl App {bluetooth: self.config.menu_bar_bluetooth,battery_percent: self.config.menu_bar_battery_percent,island_style: self.config.menu_bar_island_style,- dnd: self.config.notification_dnd,};if !self.config.menu_bar {self.menubar = None;@@ -4865,11 +4879,6 @@ fn with_app_value<T: Default>(what: &str, action: impl FnOnce(&mut App) -> Resulpub fn menu_bar_clicked(x: f32, y: f32) {with_app_then("barra superior", |app| {if let Some(bar) = &mut app.menubar {- if bar.dnd_at(x, y) {- bar.dismiss_island(&app.gfx)?;- app.toggle_dnd()?;- return Ok(None);- }if let Some(anchor) = bar.input_switcher_anchor(x, y) {bar.dismiss_island(&app.gfx)?;return Ok(Some(Outside::InputMenu {@@ -5913,6 +5922,41 @@ pub fn run() -> Result<()> {mod dock_preferences_tests {use super::*;+ #[test]+ fn removing_fixed_shortcuts_preserves_folders_pins_and_other_preferences() -> Result<()> {+ struct Fixture(std::path::PathBuf);+ impl Drop for Fixture {+ fn drop(&mut self) {+ let _ = std::fs::remove_file(&self.0);+ let _ = std::fs::remove_file(self.0.with_extension("json.lock"));+ }+ }+ let file = Fixture(env::temp_dir().join(format!(+ "muelle-fixed-shortcuts-{}.json",+ std::process::id()+ )));+ let initial = Config {+ pinned: vec!["editor".into()],+ shortcuts_folder: Some("C:\\Projects".into()),+ notification_dnd: true,+ ..Config::default()+ };+ muelle_config::save(&file.0, &initial)?;+ let downloads = hide_fixed_item(&file.0, Role::Folder)?;+ assert!(!downloads.show_downloads);+ assert!(downloads.show_trash && downloads.show_start);+ hide_fixed_item(&file.0, Role::Trash)?;+ let saved = hide_fixed_item(&file.0, Role::Start)?;+ assert!(!saved.show_downloads && !saved.show_trash && !saved.show_start);+ assert_eq!(saved.pinned, initial.pinned);+ assert_eq!(saved.shortcuts_folder, initial.shortcuts_folder);+ assert!(saved.notification_dnd);+ let before = std::fs::read(&file.0)?;+ assert!(hide_fixed_item(&file.0, Role::App).is_err());+ assert_eq!(std::fs::read(&file.0)?, before);+ Ok(())+ }+#[test]fn explorer_preference_preserves_other_pins_and_follows_open_windows() {let explorer = explorer_id();diff --git a/apps/dock/src/menubar.rs b/apps/dock/src/menubar.rsindex 1ec224b..53e5e63 100644--- a/apps/dock/src/menubar.rs+++ b/apps/dock/src/menubar.rs@@ -154,7 +154,6 @@ pub(crate) mod glyph {pub const HIDDEN_ICONS: char = '\u{E70E}';pub const MICROPHONE: char = '\u{E720}';pub const CAMERA: char = '\u{E722}';- pub const FOCUS: char = '\u{E708}';pub const MOUSE: char = '\u{E962}';pub const HEADSET: char = '\u{E95B}';pub const BLUETOOTH: char = '\u{E702}';@@ -165,7 +164,6 @@ enum Action {AccessoryIndicator,QuickSettings,Notifications,- ToggleDnd,Sound,Search,TaskView,@@ -185,7 +183,6 @@ pub struct MenuBarWidgets {pub bluetooth: bool,pub battery_percent: Option<bool>,pub island_style: IslandStyle,- pub dnd: bool,}impl Default for MenuBarWidgets {@@ -197,7 +194,6 @@ impl Default for MenuBarWidgets {bluetooth: true,battery_percent: None,island_style: IslandStyle::Notch,- dnd: false,}}}@@ -1731,7 +1727,6 @@ impl MenuBar {Some(Action::AccessoryIndicator) => {}Some(Action::QuickSettings) => launcher::open_quick_settings(),Some(Action::Notifications) => launcher::open_notifications(),- Some(Action::ToggleDnd) => {} // Dispatched by App without borrowing it again.Some(Action::Sound) => launcher::open_sound(),Some(Action::Search) => launcher::open_search(),Some(Action::TaskView) => launcher::open_task_view(),@@ -1751,22 +1746,6 @@ impl MenuBar {Ok(())}- pub fn dnd_at(&self, x: f32, y: f32) -> bool {- y >= 0.0- && y < (self.bounds.bottom - self.bounds.top) as f32- && self.zones.iter().any(|(left, right, action)| {- x >= *left && x < *right && *action == Action::ToggleDnd- })- }-- pub fn set_dnd(&mut self, gfx: &Gfx, enabled: bool) -> Result<()> {- let widgets = MenuBarWidgets {- dnd: enabled,- ..self.widgets- };- self.set_widgets(gfx, widgets)- }-pub fn input_switcher_anchor(&self, x: f32, y: f32) -> Option<POINT> {if y < 0.0 || y >= (self.bounds.bottom - self.bounds.top) as f32 {return None;@@ -1986,7 +1965,6 @@ impl MenuBar {Action::Notifications,),(gfx.control_center_brush(scale, ink)?, Action::QuickSettings),- (symbol(&[(glyph::FOCUS, 1.0)])?, Action::ToggleDnd),];// Privacy indicators, as the Windows tray shows them: something is// using the microphone or camera right now.@@ -2088,23 +2066,6 @@ impl MenuBar {right -= px(6.0);}let left = right - item.width;- if *action == Action::ToggleDnd && look.widgets.dnd {- add_rounded_box(- c,- &layers,- left - px(5.0),- px(4.0),- item.width + px(10.0),- height - px(8.0),- px(6.0),- if look.light {- rgba(0, 0, 0, 28)- } else {- rgba(255, 255, 255, 48)- },- None,- )?;- }place(&layers, item, left)?;// The battery icon and its percentage form one control.// Accessory readings are passive status indicators, not controls.@@ -3736,41 +3697,6 @@ impl Drop for MenuBar {mod island_tests {use super::*;- #[test]- #[ignore = "Requires Windows composition; hidden bar, no config or audio writes"]- fn native_dnd_hit_and_presentation_follow_the_saved_state() -> Result<()> {- use anyhow::Context;- use windows::Win32::System::WinRT::{- CreateDispatcherQueueController, DQTAT_COM_STA, DQTYPE_THREAD_CURRENT,- DispatcherQueueOptions,- };- let _queue = unsafe {- CreateDispatcherQueueController(DispatcherQueueOptions {- dwSize: size_of::<DispatcherQueueOptions>() as u32,- threadType: DQTYPE_THREAD_CURRENT,- apartmentType: DQTAT_COM_STA,- })?- };- let gfx = Gfx::new()?;- let mut bar = MenuBar::create(&gfx, false, false, true, MenuBarWidgets::default())?;- bar.set_visible(false)?;- for enabled in [false, true, false] {- bar.set_dnd(&gfx, enabled)?;- assert_eq!(bar.look.as_ref().context("bar look")?.widgets.dnd, enabled);- let (left, right, _) = *bar- .zones- .iter()- .find(|(_, _, action)| *action == Action::ToggleDnd)- .context("focus button")?;- let x = (left + right) * 0.5;- let height = (bar.bounds.bottom - bar.bounds.top) as f32;- assert!(bar.dnd_at(x, height * 0.5));- assert!(!bar.dnd_at(x, -1.0));- assert!(!bar.dnd_at(x, height + 1.0));- }- Ok(())- }-#[test]#[ignore = "Native popup layout/input regression; hidden window, no audio writes"]fn native_popup_overflow_and_layout_changes_keep_input_in_sync() -> Result<()> {diff --git a/apps/settings/src/App.tsx b/apps/settings/src/App.tsxindex c9279c6..db1f703 100644--- a/apps/settings/src/App.tsx+++ b/apps/settings/src/App.tsx@@ -82,18 +82,6 @@ export function App() {const [windowsPreferences, setWindowsPreferences] = useState<WindowsPreferences | null>(null);// Keep the animation notice from flashing while the initial system read is pending.const animations = windowsPreferences?.animations ?? true;- useEffect(() => {- let alive = true;- const check = () => {- loadWindowsPreferences()- .then((values) => { if (alive) setWindowsPreferences(values); })- .catch(() => {});- };- check();- // One shared focus listener, with no polling while Settings is idle or closed.- window.addEventListener("focus", check);- return () => { alive = false; window.removeEventListener("focus", check); };- }, []);const [section, setSection] = useState<SectionId>("dock");const [failed, setFailed] = useState(false);const [version, setVersion] = useState("");@@ -138,6 +126,27 @@ export function App() {useEffect(() => {let alive = true;+ let focusRead = 0;+ const readWindowsPreferences = () => {+ loadWindowsPreferences()+ .then((values) => { if (alive) setWindowsPreferences(values); })+ .catch(() => {});+ };+ const refreshOnFocus = async () => {+ const read = ++focusRead;+ readWindowsPreferences();+ const queued = flushSettings();+ if (!await queued || !alive || pending.current || writes.current !== queued) return;+ const loaded = await loadConfig();+ // A dock menu may have hidden an item. Never replace a newer local edit+ // or a newer focus read with an older snapshot from the native bridge.+ if (alive && read === focusRead && !pending.current && writes.current === queued) {+ setConfig(loaded);+ }+ };+ const onFocus = () => { void refreshOnFocus().catch(() => {}); };+ readWindowsPreferences();+ window.addEventListener("focus", onFocus);Promise.all([loadConfig(), getAutostart()]).then(([loaded, starts]) => {if (!alive) return;@@ -180,6 +189,7 @@ export function App() {});return () => {alive = false;+ window.removeEventListener("focus", onFocus);window.clearTimeout(timer.current);window.clearTimeout(resetTimer.current);progress.then((unlisten) => unlisten()).catch(() => {});@@ -381,6 +391,9 @@ export function App() {<Row label={t.pinExplorer} hint={t.pinExplorerHint}><Toggle label={t.pinExplorer} checked={config.pinExplorer ?? true} onChange={(pinExplorer) => update({ pinExplorer })} /></Row>+ <Row label={t.showDownloads}>+ <Toggle label={t.showDownloads} checked={config.showDownloads ?? true} onChange={(showDownloads) => update({ showDownloads })} />+ </Row><Row label={t.showTrash}><Toggle label={t.showTrash} checked={config.showTrash ?? true} onChange={(showTrash) => update({ showTrash })} /></Row>diff --git a/apps/settings/src/config.ts b/apps/settings/src/config.tsindex 2424d25..04ac3f1 100644--- a/apps/settings/src/config.ts+++ b/apps/settings/src/config.ts@@ -22,6 +22,7 @@ export interface Config {dockAutoHideSpeed: DockAutoHideSpeed;showStart: boolean;showTrash: boolean;+ showDownloads: boolean;pinExplorer: boolean;genie: boolean;genieSpeed: GenieSpeed;diff --git a/apps/settings/src/i18n/en.json b/apps/settings/src/i18n/en.jsonindex 6f32ffb..0078a26 100644--- a/apps/settings/src/i18n/en.json+++ b/apps/settings/src/i18n/en.json@@ -7,6 +7,7 @@"dockItems": "Fixed items","showStart": "Show Start","showTrash": "Show Recycle Bin",+ "showDownloads": "Show Downloads","pinExplorer": "Keep File Explorer in the Dock","pinExplorerHint": "When off, it appears only while its windows are open.","dockAutoHideSpeed": "Animation speed",diff --git a/apps/settings/src/i18n/es.json b/apps/settings/src/i18n/es.jsonindex c648493..0ea2e9b 100644--- a/apps/settings/src/i18n/es.json+++ b/apps/settings/src/i18n/es.json@@ -7,6 +7,7 @@"dockItems": "Elementos fijos","showStart": "Mostrar Inicio","showTrash": "Mostrar la Papelera",+ "showDownloads": "Mostrar Descargas","pinExplorer": "Mantener Explorador en el Dock","pinExplorerHint": "Desactivado, aparece solo mientras tiene ventanas abiertas.","dockAutoHideSpeed": "Velocidad de la animación",diff --git a/apps/settings/src/i18n/fr.json b/apps/settings/src/i18n/fr.jsonindex 0e0fdef..fcd9e06 100644--- a/apps/settings/src/i18n/fr.json+++ b/apps/settings/src/i18n/fr.json@@ -7,6 +7,7 @@"dockItems": "Éléments fixes","showStart": "Afficher Démarrer","showTrash": "Afficher la Corbeille",+ "showDownloads": "Afficher Téléchargements","pinExplorer": "Garder l’Explorateur dans le Dock","pinExplorerHint": "Désactivé, il apparaît uniquement lorsque ses fenêtres sont ouvertes.","dockAutoHideSpeed": "Vitesse de l’animation",diff --git a/apps/settings/tests/app.test.mjs b/apps/settings/tests/app.test.mjsindex e20068a..828a0b8 100644--- a/apps/settings/tests/app.test.mjs+++ b/apps/settings/tests/app.test.mjs@@ -30,6 +30,7 @@ const base = {magnification: true, dockPosition: "bottom", genie: true, genieSpeed: "normal",dockDensity: "normal", dockAutoHideSpeed: "normal", showStart: true,showTrash: true, pinExplorer: true,+ showDownloads: true,menuBarIslandStyle: "notch", menuBarSearch: null, menuBarTaskView: null,menuBarWidgets: null, menuBarBatteryPercent: null, checkUpdates: false,pinned: [], recent: [], mutedApps: [], shortcutsFolder: null,@@ -41,11 +42,12 @@ function* elements(node) {}function fixture(section = "menubar", config = {}, save = async () => {}) {- const states = [], refs = [], effects = [], timers = new Map(), calls = [];+ const states = [], refs = [], effects = [], timers = new Map(), calls = [], listeners = new Map();let stateIndex = 0, refIndex = 0, nextTimer = 0, close;const loaded = { ...base, ...config };const browser = {- addEventListener() {}, removeEventListener() {},+ addEventListener(event, callback) { assert.ok(!listeners.has(event)); listeners.set(event, callback); },+ removeEventListener(event) { listeners.delete(event); },setTimeout(callback, delay) { const id = ++nextTimer; timers.set(id, { callback, delay }); return id; },clearTimeout(id) { timers.delete(id); },};@@ -54,7 +56,7 @@ function fixture(section = "menubar", config = {}, save = async () => {}) {...React,useState(initial) {const index = stateIndex++;- if (!(index in states)) states[index] = index === 0 ? loaded : initial === "dock" ? section : initial;+ if (!(index in states)) states[index] = index === 0 ? { ...loaded } : initial === "dock" ? section : initial;return [states[index], (value) => { states[index] = typeof value === "function" ? value(states[index]) : value; }];},useRef(initial) { const index = refIndex++; return refs[index] ??= { current: initial }; },@@ -68,7 +70,7 @@ function fixture(section = "menubar", config = {}, save = async () => {}) {"@tauri-apps/api/window": { getCurrentWindow: () => nativeWindow },"@tauri-apps/api/core": { invoke: async (command, args) => {switch (command) {- case "get_config": return loaded;+ case "get_config": return { ...loaded };case "get_autostart": return false;case "windows_preferences": return { animations: true, menuBarSearch: false };case "wallpaper_preview": return null;@@ -98,6 +100,8 @@ function fixture(section = "menubar", config = {}, save = async () => {}) {function find(predicate) { const node = [...elements(render())].find(predicate); assert.ok(node); return node; }return {calls, timers, render,+ external(patch) { Object.assign(loaded, patch); },+ async focus() { listeners.get("focus")?.(); await settle(); },async mount() { render(); const cleanup = effects.map((effect) => effect()); await settle(); return () => cleanup.forEach((fn) => fn?.()); },change(label, value) { find((node) => node.props.label === label && typeof node.props.onChange === "function").props.onChange(value); },button(text) { find((node) => node.type === "button" && node.props.children === text).props.onClick(); },@@ -183,14 +187,15 @@ test("dock choices save only the selected preferences and preserve icon size", aview.change(texts.en.showStart, false);view.change(texts.en.pinExplorer, false);view.change(texts.en.showTrash, false);+ view.change(texts.en.showDownloads, false);view.change(texts.en.dockDensity, "compact");view.change(texts.en.dockAutoHideSpeed, "fast");view.fire(60);await settle();- assert.deepEqual(view.calls, [{ showStart: false, pinExplorer: false, showTrash: false,+ assert.deepEqual(view.calls, [{ showStart: false, pinExplorer: false, showTrash: false, showDownloads: false,dockDensity: "compact", dockAutoHideSpeed: "fast" }]);const controls = [...elements(view.body())];- for (const label of [texts.en.showStart, texts.en.pinExplorer, texts.en.showTrash]) {+ for (const label of [texts.en.showStart, texts.en.pinExplorer, texts.en.showTrash, texts.en.showDownloads]) {assert.equal(controls.find((node) => node.props.label === label && "checked" in node.props).props.checked, false);}assert.equal(controls.find((node) => node.props.label === texts.en.size && "value" in node.props).props.value, 64);@@ -199,3 +204,25 @@ test("dock choices save only the selected preferences and preserve icon size", aassert.ok(html.includes('checked="" value="fast"'));} finally { unmount(); }});++test("returning to Settings reflects dock removals without overwriting local edits", async () => {+ let finishSave;+ const view = fixture("dock", {}, () => new Promise((resolve) => { finishSave = resolve; }));+ const unmount = await view.mount();+ const checked = (label) => [...elements(view.body())]+ .find((node) => node.props.label === label && "checked" in node.props).props.checked;+ try {+ view.external({ showDownloads: false });+ assert.equal(checked(texts.en.showDownloads), true);+ await view.focus();+ assert.equal(checked(texts.en.showDownloads), false);+ view.change(texts.en.showDownloads, true);+ await view.focus(); // Flushes the unsaved change before requesting another snapshot.+ view.change(texts.en.showTrash, false);+ finishSave();+ await settle();+ assert.equal(checked(texts.en.showDownloads), true);+ assert.equal(checked(texts.en.showTrash), false);+ assert.deepEqual(view.calls, [{ showDownloads: true }]);+ } finally { unmount(); }+});diff --git a/crates/muelle-config/src/lib.rs b/crates/muelle-config/src/lib.rsindex 7a937d2..4424409 100644--- a/crates/muelle-config/src/lib.rs+++ b/crates/muelle-config/src/lib.rs@@ -63,6 +63,7 @@ pub struct Config {pub dock_auto_hide_speed: DockAutoHideSpeed,pub show_start: bool,pub show_trash: bool,+ pub show_downloads: bool,/// Keep Explorer pinned; otherwise it appears only while its windows are open.pub pin_explorer: bool,/// Genie effect when minimizing. On by default; while enabled, the dock@@ -306,6 +307,7 @@ impl Default for Config {dock_auto_hide_speed: DockAutoHideSpeed::Normal,show_start: true,show_trash: true,+ show_downloads: true,pin_explorer: true,magnified_size: 77,genie: true,@@ -475,7 +477,9 @@ mod tests {#[test]fn older_configs_keep_the_original_dock_defaults() -> Result<(), serde_json::Error> {let config: Config = serde_json::from_str(r#"{"iconSize":64}"#)?;- assert!(config.show_start && config.show_trash && config.pin_explorer);+ assert!(+ config.show_start && config.show_trash && config.show_downloads && config.pin_explorer+ );assert_eq!(config.dock_density.spacing(), (12.0, 9.0));assert_eq!(config.dock_auto_hide_speed.omega(), 24.0);Ok(())@@ -486,11 +490,16 @@ mod tests {{let config: Config = serde_json::from_str(r#"{- "showStart":false,"showTrash":false,"pinExplorer":false,+ "showStart":false,"showTrash":false,"showDownloads":false,"pinExplorer":false,"dockDensity":"compact","dockAutoHideSpeed":"fast"}"#,)?;- assert!(!config.show_start && !config.show_trash && !config.pin_explorer);+ assert!(+ !config.show_start+ && !config.show_trash+ && !config.show_downloads+ && !config.pin_explorer+ );assert_eq!(config.dock_density.spacing(), (8.0, 6.0));assert_eq!(config.dock_auto_hide_speed.omega(), 36.0);assert_eq!(