Skip to content

Commit

Permalink
unshown selected packages will not be installed (fix #802 )
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Mar 30, 2023
1 parent d65931f commit 666a7a4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,10 @@ def exportSelection(self) -> None:
report(e)

def installSelected(self) -> None:
for i in range(self.packageList.topLevelItemCount()):
program: TreeWidgetItemWithQAction = self.packageList.topLevelItem(i)
if not program.isHidden():
for package in self.packageItems:
try:
if program.checkState(0) == Qt.CheckState.Checked:
self.fastinstall(program.text(1), program.text(2), program.text(4), packageItem=program)
if package.checkState(0) == Qt.CheckState.Checked:
self.fastinstall(package.text(1), package.text(2), package.text(4), packageItem=package)
except AttributeError:
pass

Expand Down

0 comments on commit 666a7a4

Please sign in to comment.