Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Sep 13, 2024
1 parent 5637d90 commit 8d9e9e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/app/views/reset_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8d9e9e2

Please sign in to comment.