mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix issue with the current tab not being saved through screen recreation
This commit is contained in:
1 parent
e0d6664e85
commit
59f545e804
4 files changed
+16
-9
No files matched your search
@@ -209,7 +209,10 @@ bool TabHolder::SetCurrentTab(int tab, bool skipTween) {
|
||||
tabs_[tab]->SetVisibility(V_VISIBLE);
|
||||
|
||||
currentTab_ = tab;
|
||||
|
||||
UI::EventParams e{};
|
||||
e.v = this;
|
||||
e.a = currentTab_;
|
||||
OnChangeTab.Trigger(e);
|
||||
return created;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
}
|
||||
bool EnsureTab(int index); // return true if it actually created a tab.
|
||||
|
||||
Event OnChangeTab;
|
||||
|
||||
private:
|
||||
void AddTabContents(std::string_view title, ImageID imageId, ViewGroup *tabContents);
|
||||
void OnTabClick(EventParams &e);
|
||||
|
||||
Reference in new issue
Block a user