Skip to content

Commit

Permalink
fix: update installed indicator after install/removal
Browse files Browse the repository at this point in the history
Signed-off-by: moson-mo <mo-son@mailbox.org>
  • Loading branch information
moson-mo committed Sep 25, 2022
1 parent b98a179 commit 1223438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/pacseek/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,11 @@ func (ps *UI) updateInstalledState() {

// update currently shown packages
for i := 1; i < ps.tablePackages.GetRowCount(); i++ {
isInstalled := isPackageInstalled(ps.alpmHandle, ps.tablePackages.GetCell(i, 0).Text)
newCell := &tview.TableCell{
Text: ps.getInstalledStateText(isPackageInstalled(ps.alpmHandle, ps.tablePackages.GetCell(i, 0).Text)),
Text: ps.getInstalledStateText(isInstalled),
Expansion: 1000,
Reference: isInstalled,
}
ps.tablePackages.SetCell(i, 2, newCell)
}
Expand Down

0 comments on commit 1223438

Please sign in to comment.