mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
feat: Allow command palette to work with previous results
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <imgui.h>
|
||||
|
||||
#include <vector>
|
||||
#include <hex/api/content_registry.hpp>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
@@ -35,7 +36,7 @@ namespace hex::plugin::builtin {
|
||||
struct CommandResult {
|
||||
std::string displayResult;
|
||||
std::string matchedCommand;
|
||||
std::function<void(std::string)> executeCallback;
|
||||
ContentRegistry::CommandPaletteCommands::impl::ExecuteCallback executeCallback;
|
||||
};
|
||||
|
||||
bool m_commandPaletteOpen = false;
|
||||
@@ -54,4 +55,4 @@ namespace hex::plugin::builtin {
|
||||
std::vector<CommandResult> getCommandResults(const std::string &input);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user