fix(network): add connection if it doesn't exist when it is selected

This commit is contained in:
Ashley Wulber 2024-04-16 14:06:50 -04:00 committed by Michael Murphy
parent 8900b93c85
commit db47edf9b6
3 changed files with 155 additions and 202 deletions

View file

@ -293,8 +293,7 @@ impl cosmic::Application for CosmicNetworkApplet {
{
self.new_connection = None;
}
}
if let NetworkManagerRequest::Password(ssid, _) = &req {
} else if let NetworkManagerRequest::Password(ssid, _) = &req {
if let Some(
NewConnectionState::EnterPassword { access_point, .. }
| NewConnectionState::Waiting(access_point),