mirror of
https://github.com/WerWolv/ImHex
synced 2024-10-22 18:54:46 +00:00
fix: Properly localize Undo and Redo
This commit is contained in:
parent
8314b147d5
commit
2e338ebc01
|
@ -104,7 +104,7 @@ namespace hex {
|
||||||
|
|
||||||
return (value & mask) >> to;
|
return (value & mask) >> to;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct always_false : std::false_type {};
|
struct always_false : std::false_type {};
|
||||||
|
|
||||||
|
|
|
@ -1098,9 +1098,9 @@ R"(
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewHexEditor::drawEditPopup() {
|
void ViewHexEditor::drawEditPopup() {
|
||||||
if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.undo", "CTRL + Z", false, SharedData::currentProvider != nullptr))
|
if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.undo"_lang, "CTRL + Z", false, SharedData::currentProvider != nullptr))
|
||||||
SharedData::currentProvider->undo();
|
SharedData::currentProvider->undo();
|
||||||
if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.redo", "CTRL + Y", false, SharedData::currentProvider != nullptr))
|
if (ImGui::MenuItem("hex.view.hexeditor.menu.edit.redo"_lang, "CTRL + Y", false, SharedData::currentProvider != nullptr))
|
||||||
SharedData::currentProvider->redo();
|
SharedData::currentProvider->redo();
|
||||||
|
|
||||||
if (ImGui::BeginMenu("hex.view.hexeditor.menu.edit.copy"_lang, this->m_memoryEditor.DataPreviewAddr != -1 && this->m_memoryEditor.DataPreviewAddrEnd != -1)) {
|
if (ImGui::BeginMenu("hex.view.hexeditor.menu.edit.copy"_lang, this->m_memoryEditor.DataPreviewAddr != -1 && this->m_memoryEditor.DataPreviewAddrEnd != -1)) {
|
||||||
|
|
Loading…
Reference in a new issue