impr: Prettier data inspector edit button

This commit is contained in:
WerWolv
2023-11-19 16:08:21 +01:00
parent bd59bcda2c
commit f9073ee8ee
3 changed files with 22 additions and 3 deletions

View File

@@ -330,9 +330,7 @@ namespace hex::plugin::builtin {
ImGui::EndTable();
}
if (ImGuiExt::DimmedButton("hex.builtin.common.edit"_lang, ImVec2(ImGui::GetContentRegionAvail().x, 0))) {
this->m_tableEditingModeEnabled = !this->m_tableEditingModeEnabled;
}
ImGuiExt::DimmedButtonToggle("hex.builtin.common.edit"_lang, &this->m_tableEditingModeEnabled, ImVec2(ImGui::GetContentRegionAvail().x, 0));
ImGui::NewLine();
ImGui::Separator();