mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Copy-as options not being disabled correctly
This commit is contained in:
@@ -1043,8 +1043,9 @@ namespace hex::plugin::builtin {
|
||||
auto selection = ImHexApi::HexEditor::getSelection();
|
||||
auto provider = ImHexApi::Provider::get();
|
||||
|
||||
bool enabled = ImHexApi::HexEditor::isSelectionValid();
|
||||
for (const auto &[unlocalizedName, callback] : ContentRegistry::DataFormatter::impl::getEntries()) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName))) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName), nullptr, false, enabled)) {
|
||||
ImGui::SetClipboardText(
|
||||
callback(
|
||||
provider,
|
||||
|
||||
Reference in New Issue
Block a user