From 731e08a35496c98e13e8398a06b50ca628bc8b8c Mon Sep 17 00:00:00 2001 From: luohy Date: Thu, 3 Aug 2023 13:18:23 +0800 Subject: [PATCH] fix(window-state): fix get --- plugins/window-state/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/window-state/src/lib.rs b/plugins/window-state/src/lib.rs index 3a1f3fda..3ca7a874 100644 --- a/plugins/window-state/src/lib.rs +++ b/plugins/window-state/src/lib.rs @@ -134,7 +134,7 @@ impl WindowExt for Window { let mut should_show = true; - if let Some(state) = c.get(key) { + if let Some(state) = c.get(&key) { // avoid restoring the default zeroed state if *state == WindowState::default() { return Ok(());