accounts: Refresh completion model when scanning from qr code

In that case, we add the provider automatically for the user, not refreshing
the completion model means that the user will get a new dialog form to
create the provider a second time with less accurate information than
what exists in the otp uri.

Fixes #422
Fixes #408
This commit is contained in:
Bilal Elmoussaoui 2024-06-22 23:27:29 +02:00
parent ca2054646a
commit d7b9602fd3

View File

@ -258,6 +258,8 @@ impl AccountAddDialog {
)
.ok();
imp.provider_completion
.set_model(Some(&self.model().completion_model()));
self.set_provider(provider);
}