diff options
| author | ruki <[email protected]> | 2018-01-05 22:36:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-05 09:36:47 +0800 |
| commit | 7858a7121d9499a27f92caa2df8bda66c36a3f0e (patch) | |
| tree | f519af523fbf50737e6b1375c394cb0ded0981ee /xmake/core/ui/window.lua | |
| parent | acfd73c79e9c406161ed022b40fe4d0ac7b2ad42 (diff) | |
add dialog
Diffstat (limited to 'xmake/core/ui/window.lua')
| -rw-r--r-- | xmake/core/ui/window.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua index 83720f205..c74de5914 100644 --- a/xmake/core/ui/window.lua +++ b/xmake/core/ui/window.lua @@ -90,7 +90,9 @@ function window:frame() if not self._FRAME then self._FRAME = panel:new("window.panel", rect{0, 0, self:width(), self:height()}) self._FRAME:background_set("white") - self._FRAME:insert(self:title(), {centerx = true}) + if self:title() then + self._FRAME:insert(self:title(), {centerx = true}) + end end return self._FRAME end |
