CodeEdit: Use flag to recalculate characteristics

This commit is contained in:
HolonProduction
2025-10-13 16:17:19 +02:00
parent 4219ce91f2
commit f6ff2216ee
4 changed files with 9 additions and 5 deletions

View File

@ -315,7 +315,7 @@ public:
Ref<Resource> icon;
Variant default_value;
Vector<Pair<int, int>> matches;
Vector<Pair<int, int>> last_matches = { { -1, -1 } }; // This value correspond to an impossible match
bool matches_dirty = true; // Must be set when mutating `matches`, so that sorting characteristics are recalculated.
int location = LOCATION_OTHER;
String theme_color_name;