mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-24 03:40:14 +00:00
Don't show tiles controls in color bar by default
This commit is contained in:
parent
dfaf01ced4
commit
99b1474bdf
@ -213,6 +213,15 @@ ColorBar::ColorBar(int align, TooltipManager* tooltipManager)
|
|||||||
m_tilesHBox.addChild(&m_tilesButton);
|
m_tilesHBox.addChild(&m_tilesButton);
|
||||||
m_tilesHBox.addChild(&m_tilesetModeButtons);
|
m_tilesHBox.addChild(&m_tilesetModeButtons);
|
||||||
|
|
||||||
|
// Hide the tiles controls by default. Without this, when the first
|
||||||
|
// onActiveSiteChange() event is received, and the we ask for the
|
||||||
|
// m_tilesHBox visibility, it might say that it's hidden because the
|
||||||
|
// color bar is hidden (because it's not yet in the screen, it's the
|
||||||
|
// first time it will be displayed). So we have to add this to make
|
||||||
|
// the tiles controls invisible in the first appearance of the color
|
||||||
|
// bar.
|
||||||
|
m_tilesHBox.setVisible(false);
|
||||||
|
|
||||||
addChild(&m_buttons);
|
addChild(&m_buttons);
|
||||||
addChild(&m_tilesHBox);
|
addChild(&m_tilesHBox);
|
||||||
addChild(&m_splitter);
|
addChild(&m_splitter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user