Coalesce sequential status messages

Rapidly changing settings no longer spams the chat log with multiple status lines.

fixes #365
This commit is contained in:
Mario Zechner 2026-01-01 00:28:37 +01:00
parent ac6f5006a9
commit a2afa490f1
3 changed files with 7 additions and 6 deletions

View file

@ -19,8 +19,8 @@ describe("InteractiveMode.showStatus", () => {
const fakeThis: any = {
chatContainer: new Container(),
ui: { requestRender: vi.fn() },
lastStatusSpacer: null,
lastStatusText: null,
lastStatusSpacer: undefined,
lastStatusText: undefined,
};
(InteractiveMode as any).prototype.showStatus.call(fakeThis, "STATUS_ONE");
@ -38,8 +38,8 @@ describe("InteractiveMode.showStatus", () => {
const fakeThis: any = {
chatContainer: new Container(),
ui: { requestRender: vi.fn() },
lastStatusSpacer: null,
lastStatusText: null,
lastStatusSpacer: undefined,
lastStatusText: undefined,
};
(InteractiveMode as any).prototype.showStatus.call(fakeThis, "STATUS_ONE");