mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibGUI: Debounce TextDocument undo stack
This replaces the repeating 2-sec timer with a debounced single-shot timer on user input.
This commit is contained in:
parent
824bfa9600
commit
97d0028098
2 changed files with 7 additions and 5 deletions
|
@ -129,7 +129,7 @@ protected:
|
|||
explicit TextDocument(Client* client);
|
||||
|
||||
private:
|
||||
void update_undo_timer();
|
||||
void update_undo();
|
||||
|
||||
NonnullOwnPtrVector<TextDocumentLine> m_lines;
|
||||
Vector<TextDocumentSpan> m_spans;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue