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