diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-30 16:47:40 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-30 18:30:46 +0100 |
commit | 928f2525c29929de0c2ab520f48c82b5cb882aa7 (patch) | |
tree | e97130909f65e7835e4740824e9f38f58e4c0fbe /include/Body.hpp | |
parent | e422322650f9cb057937182987071438f9c79e84 (diff) |
Matrix: re-add /logout, cancel task immediately
Cancel video download when pressing escape,
other fixes..
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 9cdcd7b..1dc1fe8 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -147,14 +147,13 @@ namespace QuickMedia { // Select next item, ignoring invisible items. Returns true if the item was changed. This can be used to check if the bottom was hit when wrap_around is set to false bool select_next_item(); - void set_selected_item(int item); + void set_selected_item(int item, bool reset_prev_selected_item = true); // Returns -1 if item can't be found int get_index_by_body_item(BodyItem *body_item); void select_first_item(); void select_last_item(); - void reset_selected(); void clear_items(); void prepend_items(BodyItems new_items); void append_items(BodyItems new_items); |