Skip to content

Commit

Permalink
swap maybe_update with reload_tray_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cpprian committed Sep 6, 2024
1 parent df68cbe commit 46a870a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ pub async fn disconnect(
},
)?;
stop_log_watcher_task(&handle, &interface_name)?;
info!("Disconnected from location with id: {location_id}");
reload_tray_menu(&handle).await;
if connection_type == ConnectionType::Location {
maybe_update_instance_config(location_id, &handle).await?;
}
info!("Disconnected from location with id: {location_id}");
reload_tray_menu(&handle).await;
Ok(())
} else {
error!("Error while disconnecting from location with id: {location_id} not found");
Expand Down

0 comments on commit 46a870a

Please sign in to comment.