--no-desktop implies --no-browser
parent
9113e531a2
commit
e489fd7b5a
|
@ -195,7 +195,7 @@ fn main() -> Result<()> {
|
|||
|
||||
#[cfg(feature = "desktop")]
|
||||
{
|
||||
if !matches.is_present("NO_BROWSER") && ui_enabled {
|
||||
if !matches.is_present("NO_BROWSER") && !matches.is_present("NO_DESKTOP") && ui_enabled {
|
||||
let ui_result = webbrowser::open(&format!("http://localhost:{}", bind.port()));
|
||||
if ui_result.is_err() {
|
||||
warn!("Could not open UI in browser!");
|
||||
|
|
Loading…
Reference in New Issue