mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:37:45 +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
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