mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix problem showing Index/Mask with other tabs on ColorPopup
We were able to click on Index (or Mask) and then Shift+click other tab (like RGB) to show it. With this patch this is not possible anymore.
This commit is contained in:
parent
0ced31a447
commit
5ac5b358f3
@ -152,6 +152,10 @@ void ColorPopup::CustomButtonSet::onSelectItem(Item* item, bool focusItem, ui::M
|
||||
if (getItem(i)->isSelected())
|
||||
getItem(i)->setSelected(false);
|
||||
}
|
||||
else {
|
||||
if (getItem(INDEX_MODE)->isSelected()) getItem(INDEX_MODE)->setSelected(false);
|
||||
if (getItem(MASK_MODE)->isSelected()) getItem(MASK_MODE)->setSelected(false);
|
||||
}
|
||||
|
||||
if (item) {
|
||||
// Item already selected
|
||||
|
Loading…
x
Reference in New Issue
Block a user