Simplify condition

This commit is contained in:
Adam Velebil 2024-09-13 14:26:53 +02:00
parent 5637d906f9
commit 8d9e9e2159
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -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),