mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 10:06:03 +00:00
WindowServer: Add Window "modified" state
This will be used to track which windows contain some kind of unsaved data that the user may want some help remembering to save. :^)
This commit is contained in:
parent
5c385d06e8
commit
492464f4c1
Notes:
sideshowbarker
2024-07-18 18:48:56 +09:00
Author: https://github.com/awesomekling
Commit: 492464f4c1
5 changed files with 41 additions and 1 deletions
|
@ -992,4 +992,13 @@ void Window::invalidate_menubar()
|
|||
frame().invalidate();
|
||||
}
|
||||
|
||||
void Window::set_modified(bool modified)
|
||||
{
|
||||
if (m_modified == modified)
|
||||
return;
|
||||
|
||||
m_modified = modified;
|
||||
invalidate();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue