mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-04-28 13:48:50 +08:00
closes #86 - fix crash when the last Window is closed by an internal call
This commit is contained in:
parent
77ee1b7531
commit
9d75bfad5a
@ -1,4 +1,10 @@
|
||||
2018-03-13 - version 0.8.0-RC1
|
||||
2018-03-14 - version 0.8.0-RC2
|
||||
[*] Fixed crash when the last Window is closed from a code call without user
|
||||
interaction (e.g, when a Dialog button is pressed the button click handler
|
||||
closes the Dialog and the applicaton crashes if the Dialog is the last
|
||||
Window in the screen)
|
||||
|
||||
2018-03-13 - version 0.8.0-RC1
|
||||
[+] Added new property for all controls: Visible. It makes possible to show
|
||||
and hide any control with its children(if there are any).
|
||||
New Control interface methods: Visible and SetVisible
|
||||
|
@ -576,6 +576,12 @@ func (c *Composer) DestroyWindow(view Control) {
|
||||
newOrder = append(newOrder, windows[i])
|
||||
}
|
||||
}
|
||||
|
||||
if len(newOrder) == 0 {
|
||||
go Stop()
|
||||
return
|
||||
}
|
||||
|
||||
c.BeginUpdate()
|
||||
c.windows = newOrder
|
||||
c.EndUpdate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user