diff --git a/lib/libimhex/source/api/project_file_manager.cpp b/lib/libimhex/source/api/project_file_manager.cpp index 7ef0dc1eb..8f512c340 100644 --- a/lib/libimhex/source/api/project_file_manager.cpp +++ b/lib/libimhex/source/api/project_file_manager.cpp @@ -101,6 +101,8 @@ namespace hex { tar.write(MetadataPath, metadataContent); } + ImHexApi::Provider::resetDirty(); + return result; } diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index c181a5ed1..5df048a12 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -303,7 +303,8 @@ namespace hex::plugin::builtin { if (!this->m_syncPatternSourceCode) ProviderExtraData::get(provider).patternLanguage.sourceCode = sourceCode; - this->m_textEditor.SetText(sourceCode); + if (provider == ImHexApi::Provider::get()) + this->m_textEditor.SetText(sourceCode); return true; },