diff options
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r-- | src/ui/uploadwidget.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index c22bfe86..89376633 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c | |||
@@ -123,9 +123,14 @@ static const iArray *makeIdentityItems_UploadWidget_(const iUploadWidget *d) { | |||
123 | pushBack_Array(items, &(iMenuItem){ "---" }); | 123 | pushBack_Array(items, &(iMenuItem){ "---" }); |
124 | iConstForEach(PtrArray, i, listIdentities_GmCerts(certs_App(), NULL, NULL)) { | 124 | iConstForEach(PtrArray, i, listIdentities_GmCerts(certs_App(), NULL, NULL)) { |
125 | const iGmIdentity *id = i.ptr; | 125 | const iGmIdentity *id = i.ptr; |
126 | iString *str = collect_String(copy_String(name_GmIdentity(id))); | ||
127 | if (!isEmpty_String(&id->notes)) { | ||
128 | appendFormat_String( | ||
129 | str, "\n%s%s", escape_Color(uiAnnotation_ColorId), cstr_String(&id->notes)); | ||
130 | } | ||
126 | pushBack_Array( | 131 | pushBack_Array( |
127 | items, | 132 | items, |
128 | &(iMenuItem){ cstr_String(name_GmIdentity(id)), 0, 0, | 133 | &(iMenuItem){ cstr_String(str), 0, 0, |
129 | format_CStr("upload.setid fp:%s", | 134 | format_CStr("upload.setid fp:%s", |
130 | cstrCollect_String(hexEncode_Block(&id->fingerprint))) }); | 135 | cstrCollect_String(hexEncode_Block(&id->fingerprint))) }); |
131 | } | 136 | } |