Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer removing read items also for middle-clicking to mark as read. #1255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/itemlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,15 @@ itemlist_hide_item (itemPtr item)
/* if the currently selected item should be removed we
don't do it and set a flag to do it when unselecting */
if (itemlist->priv->selectedId != item->id) {
itemview_remove_item (item);
feed_list_view_update_node (item->nodeId);
gboolean keep_for_search_folder;
conf_get_bool_value (DEFER_DELETE_MODE, &keep_for_search_folder);
if (keep_for_search_folder) {
item->isHidden = TRUE;
itemview_update_item (item);
} else {
itemview_remove_item (item);
feed_list_view_update_node (item->nodeId);
}
} else {
/* update the item to show new state that forces
later removal */
Expand Down