def mark_changes(self, checkbutton):
LOG.debug("mark_changes")
addon = checkbutton.pkgname
installed = self.view.cache[addon].installed
if checkbutton.get_active():
if addon not in self.addons_to_install and not installed:
self.addons_to_install.append(addon)
if addon in self.addons_to_remove:
self.addons_to_remove.remove(addon)
else:
if addon not in self.addons_to_remove and installed:
self.addons_to_remove.append(addon)
if addon in self.addons_to_install:
self.addons_to_install.remove(addon)
self.status_bar.configure()
GObject.idle_add(self.view.update_totalsize,
priority=GObject.PRIORITY_LOW)
评论列表
文章目录