mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 22:33:25 +00:00
[PM-6506] Fix double execution of command on returnType Go (#3039)
cherrypicked from: 4e0a18cce5
This commit is contained in:
@@ -452,7 +452,11 @@ namespace Bit.iOS.Autofill
|
||||
ThemeManager.ApplyResourcesTo(environmentPage);
|
||||
if (environmentPage.BindingContext is EnvironmentPageViewModel vm)
|
||||
{
|
||||
vm.SubmitSuccessAction = () => DismissViewController(false, () => LaunchHomePage());
|
||||
vm.SubmitSuccessTask = async () =>
|
||||
{
|
||||
await DismissViewControllerAsync(false);
|
||||
await MainThread.InvokeOnMainThreadAsync(() => LaunchHomePage());
|
||||
};
|
||||
vm.CloseAction = () => DismissViewController(false, () => LaunchHomePage());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user