Merge pull request #705 from ente-io/2fa-toggle-bug-fix
2FA toggle switch bug fix
This commit is contained in:
commit
59ad671ee2
1 changed files with 1 additions and 1 deletions
|
@ -68,6 +68,7 @@ class _TwoFactorSetupPageState extends State<TwoFactorSetupPage>
|
|||
@override
|
||||
void dispose() {
|
||||
WidgetsBinding.instance.removeObserver(_lifecycleEventHandler);
|
||||
widget.completer.isCompleted ? null : widget.completer.complete();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
@ -266,7 +267,6 @@ class _TwoFactorSetupPageState extends State<TwoFactorSetupPage>
|
|||
.enableTwoFactor(context, widget.secretCode, code);
|
||||
if (success) {
|
||||
_showSuccessPage();
|
||||
widget.completer.complete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue