mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-31 00:32:48 +00:00
parent
96e4244304
commit
c06cc876d1
@ -451,8 +451,15 @@ void ColorBar::onPaletteButtonClick()
|
|||||||
}
|
}
|
||||||
|
|
||||||
case PalButton::PRESETS: {
|
case PalButton::PRESETS: {
|
||||||
if (!m_palettePopup)
|
if (!m_palettePopup) {
|
||||||
|
try {
|
||||||
m_palettePopup.reset(new PalettePopup());
|
m_palettePopup.reset(new PalettePopup());
|
||||||
|
}
|
||||||
|
catch (const std::exception& ex) {
|
||||||
|
Console::showException(ex);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_palettePopup->isVisible()) {
|
if (!m_palettePopup->isVisible()) {
|
||||||
gfx::Rect bounds = m_buttons.getItem(item)->getBounds();
|
gfx::Rect bounds = m_buttons.getItem(item)->getBounds();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user