refactor(startup): rename to STARTUP_SETTINGS

This commit is contained in:
Nova
2022-12-10 09:27:37 -05:00
parent 9f5ad2b9af
commit 697320d1c0
2 changed files with 5 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ use crate::{
data, drawable, fields, hmd, input, items,
root::Root,
spatial,
startup::{self, StartupSettings, DESKTOP_STARTUP_IDS},
startup::{self, StartupSettings, STARTUP_SETTINGS},
Node,
},
};
@@ -55,10 +55,8 @@ pub fn get_env(pid: i32) -> Result<FxHashMap<String, String>, std::io::Error> {
))
}
pub fn startup_settings(env: &FxHashMap<String, String>) -> Option<StartupSettings> {
DESKTOP_STARTUP_IDS
.lock()
.get(env.get("STARDUST_STARTUP_TOKEN")?)
.cloned()
let token = env.get("STARDUST_STARTUP_TOKEN")?;
STARTUP_SETTINGS.lock().get(token).cloned()
}
pub struct Client {