Skip to content

Commit

Permalink
Fixed activating pinned identity via Bookmarks menu
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 4, 2023
1 parent 8c0db96 commit d1ed75e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions res/about/version.gmi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Release notes

## 1.17.3
* Fixed activating a pinned identity when opening a bookmark via the Bookmarks menu.
* Fixed initial scope of a created identity when using the default selection.
* Fixed issues with dropdown menus when the menu appears as a popup window.
* Fixed clearing the pinned identity of a bookmark.
Expand Down
10 changes: 9 additions & 1 deletion src/ui/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2370,14 +2370,22 @@ const iArray *updateBookmarksMenu_Widget(iWidget *menu) {
}
#endif
}
iString *setIdentArg = NULL;
if (!isEmpty_String(&bm->identity)) {
setIdentArg = copy_String(&bm->identity);
prependCStr_String(setIdentArg, " setident:");
}
pushBack_Array(
dest,
&(iMenuItem){ format_CStr("%s %s", cstr_String(&iconStr), cstr_String(title)),
0,
0,
isFolder_Bookmark(bm)
? format_CStr("submenu id:bfmenu.%d", id_Bookmark(bm))
: format_CStr("!open url:%s", cstr_String(&bm->url)) });
: format_CStr("!open%s url:%s",
setIdentArg ? cstr_String(setIdentArg) : "",
cstr_String(&bm->url)) });
delete_String(setIdentArg);
deinit_String(&iconStr);
}
/* Create folder menus. */
Expand Down

0 comments on commit d1ed75e

Please sign in to comment.