mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-05 10:34:23 +03:00
Add hotlist menu items at the correct offset
This commit is contained in:
parent
ffb024f66d
commit
177b46e873
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user