impr: Only add pattern editor help text to first opened data source

This commit is contained in:
WerWolv
2026-01-03 22:38:36 +01:00
parent 8fc2d6b225
commit 60627b8325

View File

@@ -324,6 +324,8 @@ namespace hex::plugin::builtin {
// Initialize the text editor with some basic help text
m_textEditor.setOnCreateCallback([this](auto *provider, ui::TextEditor &editor) {
if (ImHexApi::Provider::getProviders().size() > 1)
return;
if (m_sourceCode.isSynced() && !m_sourceCode.get(provider).empty())
return;