1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Pattern source code not being loaded correctly from project files

This commit is contained in:
WerWolv 2022-08-29 13:15:17 +02:00
parent 33a375910a
commit b687eb88f9
2 changed files with 4 additions and 1 deletions

View File

@ -101,6 +101,8 @@ namespace hex {
tar.write(MetadataPath, metadataContent);
}
ImHexApi::Provider::resetDirty();
return result;
}

View File

@ -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;
},