mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 08:52:54 +00:00
TextEditor: Clear the dirty flag in newly opened documents
This commit is contained in:
parent
a71e411b27
commit
cfe09784a4
Notes:
sideshowbarker
2024-07-19 12:26:24 +09:00
Author: https://github.com/awesomekling
Commit: cfe09784a4
1 changed files with 1 additions and 0 deletions
|
@ -262,6 +262,7 @@ void TextEditorWidget::open_sesame(const String& path)
|
|||
return;
|
||||
}
|
||||
|
||||
m_document_dirty = false;
|
||||
m_editor->set_text(file.read_all());
|
||||
set_path(FileSystemPath(path));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue