mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +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
|
||||
final showResetProgress = _resetting &&
|
||||
(!Platform.isAndroid ||
|
||||
(Platform.isAndroid &&
|
||||
(ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
||||
_currentStep == _totalSteps)));
|
||||
ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
||||
_currentStep == _totalSteps);
|
||||
|
||||
return ResponsiveDialog(
|
||||
title: Text(l10n.s_factory_reset),
|
||||
|
Loading…
Reference in New Issue
Block a user