diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-24 08:30:15 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-24 08:30:15 +0200 |
commit | f4d4f2fabd3a60bc8ec0ffbe1834522a514ba955 (patch) | |
tree | d49c79556bbf20b70a30c0f02b4ec08b64ce23f2 /src/ui | |
parent | 11cb01d77815ae08499041f586348536b065dc5d (diff) |
Bookmarks: Recent folder when adding a bookmark
When creating a bookmark, use the chosen folder as the active one even if it's the root folder.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 92bf7000..57fa9f3d 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -2919,9 +2919,7 @@ static iBool handleBookmarkCreationCommands_SidebarWidget_(iWidget *editor, cons | |||
2919 | addTag_Bookmark(bm, linkSplit_BookmarkTag); | 2919 | addTag_Bookmark(bm, linkSplit_BookmarkTag); |
2920 | } | 2920 | } |
2921 | bm->parentId = folder ? id_Bookmark(folder) : 0; | 2921 | bm->parentId = folder ? id_Bookmark(folder) : 0; |
2922 | if (bm->parentId) { | 2922 | setRecentFolder_Bookmarks(bookmarks_App(), bm->parentId); |
2923 | setRecentFolder_Bookmarks(bookmarks_App(), bm->parentId); | ||
2924 | } | ||
2925 | postCommandf_App("bookmarks.changed added:%zu", id); | 2923 | postCommandf_App("bookmarks.changed added:%zu", id); |
2926 | } | 2924 | } |
2927 | setupSheetTransition_Mobile(editor, iFalse); | 2925 | setupSheetTransition_Mobile(editor, iFalse); |