fix(vpn): handle file_chooser dialog cancellation

Closes #1009
This commit is contained in:
Michael Aaron Murphy 2025-02-27 15:32:56 +01:00
parent a8b41c90f5
commit fc3bc8f2f2
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -933,6 +933,9 @@ fn add_network() -> Task<crate::app::Message> {
Err(why) => Message::Error(ErrorKind::Config, why.to_string()),
}
}
Err(cosmic::dialog::file_chooser::Error::Cancelled) => {
return Message::CancelDialog;
}
Err(why) => {
return Message::Error(ErrorKind::Config, why.to_string());
}