mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
impr: Only add pattern editor help text to first opened data source
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user