Coalesce sequential status messages
Rapidly changing settings no longer spams the chat log with multiple status lines. fixes #365
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user