patterns: Fixed project only being marked dirty when evaluating

This commit is contained in:
WerWolv 2021-09-24 01:55:30 +02:00
parent 3c2c2b003f
commit c8114347dc
1 changed files with 2 additions and 2 deletions

View File

@ -252,14 +252,14 @@ namespace hex {
} }
if (this->m_textEditor.IsTextChanged()) { if (this->m_textEditor.IsTextChanged()) {
ProjectFile::markDirty();
if (this->m_runAutomatically) if (this->m_runAutomatically)
this->m_hasUnevaluatedChanges = true; this->m_hasUnevaluatedChanges = true;
} }
if (this->m_hasUnevaluatedChanges && !this->m_evaluatorRunning) { if (this->m_hasUnevaluatedChanges && !this->m_evaluatorRunning) {
this->m_hasUnevaluatedChanges = false; this->m_hasUnevaluatedChanges = false;
ProjectFile::markDirty();
this->parsePattern(this->m_textEditor.GetText().data()); this->parsePattern(this->m_textEditor.GetText().data());
} }
} }