Skip to content

Commit

Permalink
Fix bad condition for disabling action button
Browse files Browse the repository at this point in the history
  • Loading branch information
0x192 committed Oct 6, 2021
1 parent d788baf commit 048e7fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ and `Removed`.

## Fixed
- [Regression] Unsafe packages can be deleted without enabling `expert mode`.
- Refresh button doesn't update settings when a (new) phone is connected.
- The refresh button doesn't update settings when a (new) phone is connected.
- [Regression] Restore buttons are disabled when connecting an Android 8.0 phone.

## [0.2.2] - 2021-09-30

Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/package_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl PackageRow {
}

if (self.state != PackageState::Uninstalled && settings.expert_mode) ||
(self.removal != Removal::Unsafe && (self.state != PackageState::Uninstalled || phone.android_sdk > 26))
(self.removal != Removal::Unsafe && phone.android_sdk >= 26)
{

selection_checkbox = Checkbox::new(self.selected, "", Message::ToggleSelection)
Expand Down

0 comments on commit 048e7fc

Please sign in to comment.