aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-13 04:21:23 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-13 04:21:23 +0200
commit522285b55556b954c786d254388c4b0e45f05a14 (patch)
treeb1f8038e2d7c930ed5541b3f76cd319c3946e824 /include
parent7d4825e3c466ec90ea3e6508545636ead96ec164 (diff)
Fix lbry launch icon not loading, incorrect tabs body items cleared on tab switch
Diffstat (limited to 'include')
-rw-r--r--include/Tabs.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Tabs.hpp b/include/Tabs.hpp
index b7d8de6..51a7e9d 100644
--- a/include/Tabs.hpp
+++ b/include/Tabs.hpp
@@ -33,7 +33,7 @@ namespace QuickMedia {
void set_selected(int index);
int get_selected() const;
- std::function<void(int)> on_change_tab = nullptr;
+ std::function<void(int prev_tab, int new_tab)> on_change_tab = nullptr;
private:
void move_selected_tab(int new_tab);
float tab_index_to_x_offset(int index);