talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit cc3ffa1e257c300f99dd667def929e44eb0945cf
parent 689ff464dc4e6af1ca1b9c15ea0e41fc2d2550c2
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue,  3 Jan 2023 14:21:14 +0100

Fix minor issues on new start-up folder feature

• Disallow setting top-level folders as start-up folders: there's
  nothing to be opened on them.
• Give fast feedback of the folder currently set as start-up folder
  by setting the menu entry to disabled on it.

Diffstat:
Msrc/folderview.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/folderview.c b/src/folderview.c @@ -2000,6 +2000,10 @@ static void folderview_set_sens_and_popup_menu(FolderView *folderview, gint row, SET_SENS("FolderViewPopup/Processing", item->node->parent != NULL && !item->no_select && !item->processing_pending); + SET_SENS("FolderViewPopup/OpenFolder", item->node->parent != NULL + && (!prefs_common.goto_folder_on_startup + || strcmp(folder_item_get_identifier(item), prefs_common.startup_folder))); + if (item == folder->trash || item == special_trash || folder_has_parent_of_type(item, F_TRASH)) { GSList *msglist = folder_item_get_msg_list(item);