| 1200 | } |
| 1201 | |
| 1202 | void UpdateWidgetItems(WindowBase* w, WidgetIndex widgetIndex, const std::vector<std::string>& items) |
| 1203 | { |
| 1204 | if (w->classification == WindowClass::custom) |
| 1205 | { |
| 1206 | auto& customInfo = GetInfo(static_cast<CustomWindow*>(w)); |
| 1207 | auto customWidgetInfo = customInfo.GetCustomWidgetDesc(w, widgetIndex); |
| 1208 | if (customWidgetInfo != nullptr) |
| 1209 | { |
| 1210 | customWidgetInfo->Items = items; |
| 1211 | UpdateWidgetSelectedIndex(w, widgetIndex, customWidgetInfo->SelectedIndex); |
| 1212 | } |
| 1213 | } |
| 1214 | } |
| 1215 | |
| 1216 | void UpdateWidgetColour(WindowBase* w, WidgetIndex widgetIndex, Colour colour) |
| 1217 | { |
no test coverage detected