mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
TextEditor: Clear the dirty flag in newly opened documents
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user