--no-desktop implies --no-browser

feat/vaults
Tomáš Mládek 2022-01-19 20:36:02 +01:00
parent 9113e531a2
commit e489fd7b5a
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 1 additions and 1 deletions

View File

@ -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!");