Fix a type mismatch error in lubuntu-notifier.py

ubuntu/mantic ubuntu/0.5.4
Aaron Rainbolt 1 year ago
parent 4054e9bf03
commit a175069ed3

2
debian/changelog vendored

@ -3,6 +3,8 @@ lubuntu-update-notifier (0.5.4) lunar; urgency=medium
* Disconnect the status_changed() function from the status-changed signal in * Disconnect the status_changed() function from the status-changed signal in
repair_install(), as it interferes with upgrade_progress_download(). repair_install(), as it interferes with upgrade_progress_download().
(LP: #2012702) (LP: #2012702)
* Don't try to pass a string to QTreeWidgetItem when it expects an
Iterable[str]. (LP: #2012823)
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Sun, 26 Mar 2023 10:48:15 -0500 -- Aaron Rainbolt <arraybolt3@ubuntu.com> Sun, 26 Mar 2023 10:48:15 -0500

@ -129,7 +129,7 @@ class Dialog(QWidget):
if len(pkg_delete) > 0: if len(pkg_delete) > 0:
toDelete = QTreeWidgetItem([_('Remove')]) toDelete = QTreeWidgetItem([_('Remove')])
for p in pkg_delete: for p in pkg_delete:
td_child = QTreeWidgetItem(p.name) td_child = QTreeWidgetItem([p.name])
toDelete.addChild(td_child) toDelete.addChild(td_child)
toDelete.setIcon(0, QIcon.fromTheme("edit-delete")) toDelete.setIcon(0, QIcon.fromTheme("edit-delete"))
self.tw.addTopLevelItem(toDelete) self.tw.addTopLevelItem(toDelete)

Loading…
Cancel
Save