mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Fix PopupWindow size hint when it doesn't have a title
This commit is contained in:
parent
d8417df35f
commit
e422acff1f
@ -22,7 +22,7 @@ using namespace gfx;
|
||||
PopupWindow::PopupWindow(const std::string& text,
|
||||
ClickBehavior clickBehavior,
|
||||
EnterBehavior enterBehavior)
|
||||
: Window(WithTitleBar, text)
|
||||
: Window(text.empty() ? WithoutTitleBar: WithTitleBar, text)
|
||||
, m_clickBehavior(clickBehavior)
|
||||
, m_enterBehavior(enterBehavior)
|
||||
, m_filtering(false)
|
||||
|
Loading…
Reference in New Issue
Block a user