This commit is contained in:
Krzosa Karol
2025-12-26 15:41:29 +01:00
parent 4221aa8fb7
commit 44bf7c68ff

View File

@@ -526,6 +526,12 @@ void Update(Event event) {
{ {
ProfileScope(WindowEndOfFrameVisibilityAndLastActive); ProfileScope(WindowEndOfFrameVisibilityAndLastActive);
For (Windows) { For (Windows) {
if (it->goto_history.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_history, 0);
}
if (it->goto_redo.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_redo, 0);
}
if (it->sync_visibility_with_focus) { if (it->sync_visibility_with_focus) {
if (it->id == ActiveWindowID) { if (it->id == ActiveWindowID) {
it->visible = true; it->visible = true;
@@ -541,15 +547,6 @@ void Update(Event event) {
LastActiveLayoutWindowID = ActiveWindowID; LastActiveLayoutWindowID = ActiveWindowID;
} }
} }
For (Windows) {
if (it->goto_history.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_history, 0);
}
if (it->goto_redo.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_redo, 0);
}
}
} }