ux: Disable bookmark toolbar button if nothing is selected
This commit is contained in:
parent
abd3fe6ed1
commit
42c0b6145b
@ -123,7 +123,7 @@ namespace hex::plugin::builtin {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user