1
0
mirror of synced 2025-02-18 03:09:18 +01:00

ux: Pre-fill remove popup size value with current selection size

This commit is contained in:
WerWolv 2022-09-16 08:33:18 +02:00
parent 73ca45ad3d
commit 7357c26d54

View File

@ -1576,7 +1576,8 @@ namespace hex::plugin::builtin {
}
if (ImGui::MenuItem("hex.builtin.view.hex_editor.menu.edit.remove"_lang, nullptr, false, providerValid && provider->isResizable())) {
this->openPopup<PopupRemove>(this->getSelection().getStartAddress(), 0x00);
auto selection = this->getSelection();
this->openPopup<PopupRemove>(selection.getStartAddress(), selection.getSize());
}
});
}