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)]
|
||||
{
|
||||
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;
|
||||
}
|
||||
} else if args[0] == "--remove" {
|
||||
@ -99,6 +102,11 @@ fn main() {
|
||||
hbb_common::config::Config::import(&args[1]);
|
||||
}
|
||||
return;
|
||||
} else if args[0] == "--password" {
|
||||
if args.len() == 2 {
|
||||
hbb_common::config::Config::set_password(&args[1]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
ui::start(&mut args[..]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user