diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 1dd1eca987..f19f8ad30d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,7 @@ 0.5.2 (in development) ------------------------------------------------------------------------ - Improved: [#26566] Improve the performance of sorting sprites. +- Fix: [#26350] ListViews altered by plugins post their creation are not invalidated. - Fix: [#26565] Game crashes when switching to another tab in the guest window. - Fix: [#26583] The default tab is not highlighted when opening a ride window. - Fix: [#26602] Crash when locating the nearest mechanic for a ride that has not previously been inspected. diff --git a/src/openrct2-ui/scripting/ScWidget.hpp b/src/openrct2-ui/scripting/ScWidget.hpp index a53966ba4d..37fe1c7e3c 100644 --- a/src/openrct2-ui/scripting/ScWidget.hpp +++ b/src/openrct2-ui/scripting/ScWidget.hpp @@ -873,6 +873,7 @@ namespace OpenRCT2::Scripting if (listView != nullptr) { listView->CanSelect = valueBool; + Invalidate(thisVal); } return JS_UNDEFINED; } @@ -895,6 +896,7 @@ namespace OpenRCT2::Scripting if (listView != nullptr) { listView->IsStriped = valueBool; + Invalidate(thisVal); } return JS_UNDEFINED; } @@ -938,6 +940,8 @@ namespace OpenRCT2::Scripting if (listView != nullptr) { listView->ShowColumnHeaders = valueBool; + WindowUpdateScrollWidgets(*GetWindow(thisVal)); + Invalidate(thisVal); } return JS_UNDEFINED; } @@ -968,6 +972,7 @@ namespace OpenRCT2::Scripting if (listView != nullptr) { listView->SelectedCell = RowColumnFromJS(ctx, value); + Invalidate(thisVal); } return JS_UNDEFINED; }