1
0
mirror of synced 2024-12-01 18:57:18 +01:00

ux: Disable bookmark toolbar button if nothing is selected

This commit is contained in:
WerWolv 2022-02-08 18:39:15 +01:00
parent abd3fe6ed1
commit 42c0b6145b

View File

@ -123,7 +123,7 @@ namespace hex::plugin::builtin {
ImHexApi::Bookmarks::add(region.address, region.size, {}, {}); ImHexApi::Bookmarks::add(region.address, region.size, {}, {});
} }
}, },
!ImHexApi::Provider::isValid() || !provider->isReadable()); !ImHexApi::Provider::isValid() || !provider->isReadable() || ImHexApi::HexEditor::getSelection().size == 0);
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical); ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);