parent
224748eb96
commit
7d9f4dcc80
@ -93,12 +93,13 @@ class WhatNextGramplet(Gramplet):
|
|||||||
self.opts[3].add_item('', '')
|
self.opts[3].add_item('', '')
|
||||||
self.opts[4].add_item('', '')
|
self.opts[4].add_item('', '')
|
||||||
self.opts[5].add_item('', '')
|
self.opts[5].add_item('', '')
|
||||||
for tag_handle in self.dbstate.db.get_tag_handles(sort_handles=True):
|
if self.dbstate.db.is_open():
|
||||||
tag = self.dbstate.db.get_tag_from_handle(tag_handle)
|
for tag_handle in self.dbstate.db.get_tag_handles(sort_handles=True):
|
||||||
tag_name = tag.get_name()
|
tag = self.dbstate.db.get_tag_from_handle(tag_handle)
|
||||||
self.opts[3].add_item(tag_name, tag_name)
|
tag_name = tag.get_name()
|
||||||
self.opts[4].add_item(tag_name, tag_name)
|
self.opts[3].add_item(tag_name, tag_name)
|
||||||
self.opts[5].add_item(tag_name, tag_name)
|
self.opts[4].add_item(tag_name, tag_name)
|
||||||
|
self.opts[5].add_item(tag_name, tag_name)
|
||||||
|
|
||||||
list(map(self.add_option, self.opts))
|
list(map(self.add_option, self.opts))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user