From 8d9e9e21590d6d778b654e5b4b33ad929448ef45 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Fri, 13 Sep 2024 14:26:53 +0200 Subject: [PATCH] Simplify condition --- lib/app/views/reset_dialog.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/app/views/reset_dialog.dart b/lib/app/views/reset_dialog.dart index 06c68cb67..a318f838c 100644 --- a/lib/app/views/reset_dialog.dart +++ b/lib/app/views/reset_dialog.dart @@ -126,9 +126,8 @@ class _ResetDialogState extends ConsumerState { // 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),