|
|
|
@ -54,7 +54,6 @@ func append_item_invitation():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func prune_empty_items():
|
|
|
|
|
# var items_to_prune = Array()
|
|
|
|
|
for item in __get_children_items(get_root()):
|
|
|
|
|
if item.get_text(TEXT_COLUMN) == '':
|
|
|
|
|
if item.get_next():
|
|
|
|
@ -63,6 +62,13 @@ func prune_empty_items():
|
|
|
|
|
item.free()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func prune_extra_items():
|
|
|
|
|
for item in __get_children_items(get_root()):
|
|
|
|
|
if item.get_text(TEXT_COLUMN) == invite_text:
|
|
|
|
|
if item.get_next():
|
|
|
|
|
item.free()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func __on_item_edited():
|
|
|
|
|
append_item_invitation()
|
|
|
|
|
|
|
|
|
@ -83,6 +89,8 @@ func __on_item_moved(item, to_item, section):
|
|
|
|
|
new_item.set_editable(TEXT_COLUMN, true)
|
|
|
|
|
new_item.select(TEXT_COLUMN)
|
|
|
|
|
item.free()
|
|
|
|
|
prune_extra_items()
|
|
|
|
|
append_item_invitation()
|
|
|
|
|
ensure_cursor_is_visible()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|