mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibGUI: Reset TextEditor modified state on sucessful write_to_file
Avoids missing reset of the state if saving is done in multiple places.
This commit is contained in:
parent
3cafdca868
commit
2b24fbdaaa
2 changed files with 1 additions and 4 deletions
|
@ -1190,7 +1190,7 @@ bool TextEditor::write_to_file(const String& path)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
document().set_unmodified();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue