mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 17:40:01 +00:00
Show close button on ColorPopup
Fix regression introduced in 52375f3aa9
This commit is contained in:
parent
618f2eeb44
commit
b5e7ed2836
@ -47,7 +47,7 @@ enum {
|
||||
};
|
||||
|
||||
ColorPopup::ColorPopup(bool canPin)
|
||||
: PopupWindowPin(std::string(),
|
||||
: PopupWindowPin(" ", // Non-empty to create title-bar and close button
|
||||
ClickBehavior::CloseOnClickInOtherWindow,
|
||||
canPin)
|
||||
, m_vbox(VERTICAL)
|
||||
@ -98,6 +98,7 @@ ColorPopup::ColorPopup(bool canPin)
|
||||
m_topBox.addChild(vbox);
|
||||
}
|
||||
}
|
||||
setText(""); // To remove title
|
||||
|
||||
m_vbox.addChild(&m_topBox);
|
||||
m_vbox.addChild(&m_colorPaletteContainer);
|
||||
|
Loading…
Reference in New Issue
Block a user