mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +03:00
Simplify condition
This commit is contained in:
parent
5637d906f9
commit
8d9e9e2159
@ -126,9 +126,8 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
|
|||||||
// show the progress widgets on desktop, or on Android when using USB
|
// show the progress widgets on desktop, or on Android when using USB
|
||||||
final showResetProgress = _resetting &&
|
final showResetProgress = _resetting &&
|
||||||
(!Platform.isAndroid ||
|
(!Platform.isAndroid ||
|
||||||
(Platform.isAndroid &&
|
ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
||||||
(ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
_currentStep == _totalSteps);
|
||||||
_currentStep == _totalSteps)));
|
|
||||||
|
|
||||||
return ResponsiveDialog(
|
return ResponsiveDialog(
|
||||||
title: Text(l10n.s_factory_reset),
|
title: Text(l10n.s_factory_reset),
|
||||||
|
Loading…
Reference in New Issue
Block a user