Skip to content
Snippets Groups Projects
Commit b8865309 authored by Dennis Baurichter's avatar Dennis Baurichter
Browse files

commit: Indicate folder type in selection dialog

parent d09d202a
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ class FolderSelectActivity:
items=s.suggestions
lines=[
int(math.ceil((len(item.display_title)+len(item.id)+7)/w))
int(math.ceil((len(item.display_title)+len(item.id)+len(item.content_types[0])+10)/w))
for item in items ]
lines_remain=h-s.suggestions_y-1
......@@ -197,7 +197,8 @@ class FolderSelectActivity:
items=items[i0:i1+1]
for i,item in enumerate(items):
wnd.addstr(" #%s: %s\n"%(item.id,item.display_title),
wnd.addstr(" #%s: %s (%s)\n"
%(item.id,item.display_title,item.content_types[0]),
A_VALUE|curses.A_STANDOUT if i+i0==s.suggestionIndex else A_VALUE)
wnd.move(s.query_y,s.query_x+s.query_cursor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment