--no-admin and fix migoto setting

This commit is contained in:
SpikeHD
2022-09-18 17:54:05 -07:00
parent c4526e2ff6
commit e75f65ab56
3 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,9 @@ async fn arg_handler(args: &[String]) {
}
fn main() {
if !is_elevated() {
let args: Vec<String> = std::env::args().collect();
if !is_elevated() && !has_arg(&args, "--no-admin") {
println!("===============================================================================");
println!("You running as a non-elevated user. Some stuff will almost definitely not work.");
println!("===============================================================================");
@@ -69,8 +71,6 @@ fn main() {
exe_path.pop();
std::env::set_current_dir(&exe_path).unwrap();
let args: Vec<String> = std::env::args().collect();
block_on(arg_handler(&args));
// For disabled GUI