remove conditional elevation
This commit is contained in:
+1
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user