Add hotlist menu items at the correct offset

This commit is contained in:
Chris Young 2013-09-12 11:27:45 +01:00
parent ffb024f66d
commit 177b46e873

View File

@ -590,7 +590,6 @@ static nserror ami_menu_hotlist_folder_enter_cb(void *ctx, const char *title)
if((menu_ctx->level == 0) && (strcmp(title, messages_get("HotlistMenu")) == 0))
menu_ctx->in_menu = true;
}
menu_ctx->level++;
return NSERROR_OK;
}
@ -622,7 +621,7 @@ static nserror ami_menu_scan(struct tree *tree, struct gui_window_2 *gwin)
struct ami_hotlist_ctx ctx;
ctx.level = 0;
ctx.item = 0;
ctx.item = AMI_MENU_HOTLIST;
ctx.in_menu = false;
ctx.gw = gwin;