remove conditional elevation

This commit is contained in:
2026-06-28 16:14:49 +01:00
parent 054c86e2d2
commit 1f296c3880
6 changed files with 103 additions and 176 deletions
+1 -5
View File
@@ -3,7 +3,7 @@ use crate::{
app::{App, WINDOW_SIZE},
tools,
},
util::{persistent_state::PersistentState, win},
util::persistent_state::PersistentState,
};
use eframe::egui;
use windows::Win32::System::Com::{COINIT_APARTMENTTHREADED, CoInitializeEx};
@@ -21,10 +21,6 @@ fn app_creator(
if let Some(persistent_state) = PersistentState::get() {
persistent_state.apply_to(&mut app);
}
// check if we're elevated. if not, and the user wants an elevated launch - relaunch elevated
if !app.flags.elevated && app.settings.start_elevated {
win::elevate(win::ElevationExitMethod::Forced);
}
// refresh system info because it initializes with nothing
app.system_info.refresh();
// enable image loading support in egui