mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
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:
parent
ca2054646a
commit
d7b9602fd3
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ impl AccountAddDialog {
|
|||
)
|
||||
.ok();
|
||||
|
||||
imp.provider_completion
|
||||
.set_model(Some(&self.model().completion_model()));
|
||||
self.set_provider(provider);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue