From df63a5d1412f3b3b0c1a3914d75a37877ee3c3ec Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 19 Oct 2023 12:30:38 -0400 Subject: [PATCH] fix: typo --- cosmic-applet-tiling/src/window.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cosmic-applet-tiling/src/window.rs b/cosmic-applet-tiling/src/window.rs index 8acc8986..52b81753 100644 --- a/cosmic-applet-tiling/src/window.rs +++ b/cosmic-applet-tiling/src/window.rs @@ -143,14 +143,7 @@ impl cosmic::Application for Window { return; }; - let Ok(mut c_active_hint) = ConfigGet::get::<(u32, u32)>(&config, "active_hint") else { - error!("Error getting active_hint"); - return; - }; - - c_active_hint.1 = active_hint as u32; - - if let Err(err) = ConfigSet::set(&config, "active_hint", c_active_hint) { + if let Err(err) = ConfigSet::set(&config, "active_hint", active_hint) { error!(?err, "Error setting active_hint"); } @@ -163,7 +156,7 @@ impl cosmic::Application for Window { return; }; - if let Err(err) = ConfigSet::set(&config, "active_hint", c_active_hint) { + if let Err(err) = ConfigSet::set(&config, "active_hint", active_hint) { error!(?err, "Error setting active_hint"); } },