This commit is contained in:
parent
c385d88708
commit
f558c12866
10
src/main.rs
10
src/main.rs
@ -76,7 +76,10 @@ fn main() {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
hbb_common::allow_err!(platform::uninstall_me());
|
hbb_common::allow_err!(platform::uninstall_me());
|
||||||
hbb_common::allow_err!(platform::install_me("desktopicon startmenu"));
|
hbb_common::allow_err!(platform::install_me(
|
||||||
|
"desktopicon startmenu",
|
||||||
|
"".to_owned()
|
||||||
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if args[0] == "--remove" {
|
} else if args[0] == "--remove" {
|
||||||
@ -99,6 +102,11 @@ fn main() {
|
|||||||
hbb_common::config::Config::import(&args[1]);
|
hbb_common::config::Config::import(&args[1]);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
} else if args[0] == "--password" {
|
||||||
|
if args.len() == 2 {
|
||||||
|
hbb_common::config::Config::set_password(&args[1]);
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ui::start(&mut args[..]);
|
ui::start(&mut args[..]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user