summaryrefslogtreecommitdiff
path: root/apps/plugins/otp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/otp.c')
-rw-r--r--apps/plugins/otp.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/plugins/otp.c b/apps/plugins/otp.c
index 4d302563fb..356e1e5eb6 100644
--- a/apps/plugins/otp.c
+++ b/apps/plugins/otp.c
@@ -208,17 +208,16 @@ static int base32_encode(const uint8_t *data, int length, uint8_t *result,
208 208
209static bool browse( char *dst, int dst_size, const char *start ) 209static bool browse( char *dst, int dst_size, const char *start )
210{ 210{
211 struct browse_context browse; 211 struct browse_context browse = {
212 212 .dirfilter = SHOW_ALL,
213 rb->browse_context_init(&browse, SHOW_ALL, 213 .flags = BROWSE_SELECTONLY | BROWSE_NO_CONTEXT_MENU,
214 BROWSE_SELECTONLY|BROWSE_NO_CONTEXT_MENU, 214 .icon = Icon_NOICON,
215 NULL, NOICON, start, NULL); 215 .root = start,
216 216 .buf = dst,
217 browse.buf = dst; 217 .bufsize = dst_size,
218 browse.bufsize = dst_size; 218 };
219 219
220 rb->rockbox_browse(&browse); 220 rb->rockbox_browse(&browse);
221
222 return (browse.flags & BROWSE_SELECTED); 221 return (browse.flags & BROWSE_SELECTED);
223} 222}
224 223