Made the callback function in OptionListComponent more generic.

This commit is contained in:
Leon Styhre 2023-02-20 17:52:51 +01:00
parent 8d8de39c39
commit b980a2f742

View file

@ -249,7 +249,7 @@ public:
void setOverrideMultiText(const std::string& text) { mOverrideMultiText = text; }
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;
}