mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +00:00
Made the callback function in OptionListComponent more generic.
This commit is contained in:
parent
8d8de39c39
commit
b980a2f742
|
@ -249,7 +249,7 @@ public:
|
||||||
|
|
||||||
void setOverrideMultiText(const std::string& text) { mOverrideMultiText = text; }
|
void setOverrideMultiText(const std::string& text) { mOverrideMultiText = text; }
|
||||||
void clearEntries() { mEntries.clear(); }
|
void clearEntries() { mEntries.clear(); }
|
||||||
void setCallback(const std::function<void(const std::string&)>& callbackFunc)
|
void setCallback(const std::function<void(const T& object)>& callbackFunc)
|
||||||
{
|
{
|
||||||
mSelectedChangedCallback = callbackFunc;
|
mSelectedChangedCallback = callbackFunc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue