This commit is contained in:
2025-04-10 17:28:58 +01:00
parent e283393889
commit 072c8ae406
3 changed files with 13 additions and 11 deletions
+2 -1
View File
@@ -373,13 +373,14 @@ fn load_icon() -> egui::IconData {
}
}
#[allow(clippy::unnecessary_wraps)]
fn app_creator(
cc: &eframe::CreationContext<'_>,
) -> Result<Box<dyn eframe::App>, Box<dyn std::error::Error + Send + Sync>> {
let mut app = Box::<App>::default();
if let Some(persistent_state) = PersistentState::get() {
app.launch.selected = persistent_state.launcher;
app.settings = persistent_state.settings.clone();
app.settings = persistent_state.settings;
};
let elevated = util::win::is_elevated();
if app.settings.start_elevated && !elevated {