mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
HackStudio: Reuse TextDocument::is_modified()
Previously, the modification tag in the editor file label was unset only after a file was saved. This commit will also unset the tag if you undo the stack (for example by hitting Ctrl+Z) to the last saved state.
This commit is contained in:
parent
2c22ff94b4
commit
cf71805aa8
3 changed files with 7 additions and 19 deletions
|
@ -42,7 +42,6 @@ public:
|
|||
void set_debug_mode(bool);
|
||||
void set_filename(const String&);
|
||||
const String& filename() const { return m_filename; }
|
||||
bool document_dirty() const { return m_document_dirty; }
|
||||
|
||||
Optional<LexicalPath> const& project_root() const { return m_project_root; }
|
||||
void set_project_root(LexicalPath const& project_root);
|
||||
|
@ -64,7 +63,6 @@ private:
|
|||
String m_filename;
|
||||
RefPtr<GUI::Label> m_filename_label;
|
||||
RefPtr<Editor> m_editor;
|
||||
bool m_document_dirty { false };
|
||||
|
||||
Optional<LexicalPath> m_project_root;
|
||||
RefPtr<GitRepo> m_git_repo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue