From 2e22afbaa5c01d9aa40564a7646092455ce0d88c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 9 Feb 2021 15:29:29 +0100 Subject: Matrix: put an end to my unread messages misery --- src/Body.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 88bada4..44d1a2d 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -228,6 +228,10 @@ namespace QuickMedia { //page_scroll = 0.0f; } + void Body::reset_prev_selected_item() { + prev_selected_item = selected_item; + } + int Body::get_index_by_body_item(BodyItem *body_item) { for(int i = 0; i < (int)items.size(); ++i) { if(items[i].get() == body_item) -- cgit v1.2.3