From 30a0a4027975a3bf76febb14e909482e9b555eeb Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 8 Jul 2025 15:00:34 -0700 Subject: [PATCH] manager/user: Combine redundant checks --- steamos-manager/src/manager/user.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/steamos-manager/src/manager/user.rs b/steamos-manager/src/manager/user.rs index fd71a93..8f1d118 100644 --- a/steamos-manager/src/manager/user.rs +++ b/steamos-manager/src/manager/user.rs @@ -1111,12 +1111,6 @@ pub(crate) async fn create_interfaces( channel: daemon, }; let screen_reader = ScreenReader0::new(&session).await?; - let wifi_debug = WifiDebug1 { - proxy: proxy.clone(), - }; - let wifi_debug_dump = WifiDebugDump1 { - proxy: proxy.clone(), - }; let wifi_power_management = WifiPowerManagement1 { proxy: proxy.clone(), }; @@ -1131,6 +1125,13 @@ pub(crate) async fn create_interfaces( object_server.at(MANAGER_PATH, als).await?; } if steam_deck_variant().await.unwrap_or_default() == SteamDeckVariant::Galileo { + let wifi_debug = WifiDebug1 { + proxy: proxy.clone(), + }; + let wifi_debug_dump = WifiDebugDump1 { + proxy: proxy.clone(), + }; + object_server.at(MANAGER_PATH, wifi_debug).await?; object_server.at(MANAGER_PATH, wifi_debug_dump).await?; } @@ -1168,10 +1169,6 @@ pub(crate) async fn create_interfaces( object_server.at(MANAGER_PATH, screen_reader).await?; } - if steam_deck_variant().await.unwrap_or_default() == SteamDeckVariant::Galileo { - object_server.at(MANAGER_PATH, wifi_debug).await?; - } - if !list_wifi_interfaces().await.unwrap_or_default().is_empty() { object_server .at(MANAGER_PATH, wifi_power_management)