mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 06:32:12 +02:00
ui/crumbs/tasklistmodel: remove unnecessary check
Cheaper to set COL_INC to True regardless of whether it's already set. (Bitbake rev: 12c6f98ba7a68baeeaee00594d910e1be8d55d87) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bfdc8a295b
commit
ed15be3313
@@ -436,9 +436,8 @@ class TaskListModel(gtk.ListStore):
|
||||
def include_item(self, item_path, binb="", image_contents=False):
|
||||
item_name = self[item_path][self.COL_NAME]
|
||||
item_deps = self[item_path][self.COL_DEPS]
|
||||
item_inc = self[item_path][self.COL_INC]
|
||||
if not item_inc:
|
||||
self[item_path][self.COL_INC] = True
|
||||
|
||||
self[item_path][self.COL_INC] = True
|
||||
|
||||
item_bin = self[item_path][self.COL_BINB].split(', ')
|
||||
if not binb in item_bin:
|
||||
|
||||
Reference in New Issue
Block a user