mirror of https://github.com/WerWolv/ImHex.git
fix: Pattern source code not being loaded correctly from project files
This commit is contained in:
parent
33a375910a
commit
b687eb88f9
|
@ -101,6 +101,8 @@ namespace hex {
|
|||
tar.write(MetadataPath, metadataContent);
|
||||
}
|
||||
|
||||
ImHexApi::Provider::resetDirty();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -303,6 +303,7 @@ namespace hex::plugin::builtin {
|
|||
if (!this->m_syncPatternSourceCode)
|
||||
ProviderExtraData::get(provider).patternLanguage.sourceCode = sourceCode;
|
||||
|
||||
if (provider == ImHexApi::Provider::get())
|
||||
this->m_textEditor.SetText(sourceCode);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue