mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +03:00
Merge PR #1689
This commit is contained in:
commit
aa485d44f4
@ -123,6 +123,12 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
|
||||
_application == Capability.fido2 &&
|
||||
!ref.watch(rpcStateProvider.select((state) => state.isAdmin));
|
||||
|
||||
// show the progress widgets on desktop, or on Android when using USB
|
||||
final showResetProgress = _resetting &&
|
||||
(!Platform.isAndroid ||
|
||||
ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
||||
_currentStep == _totalSteps);
|
||||
|
||||
return ResponsiveDialog(
|
||||
title: Text(l10n.s_factory_reset),
|
||||
key: factoryResetCancel,
|
||||
@ -322,7 +328,7 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
|
||||
},
|
||||
),
|
||||
],
|
||||
if (_resetting)
|
||||
if (showResetProgress)
|
||||
if (_application == Capability.fido2 && _currentStep >= 0) ...[
|
||||
Text('${l10n.s_status}: ${_getMessage()}'),
|
||||
LinearProgressIndicator(value: progress),
|
||||
|
Loading…
Reference in New Issue
Block a user