Added a println() to the main test window to signal that window closing has happened. This is used for ensuring that closing programs from a task switcher works as expected (that is, that the appropriate w.Closing event is triggered if an individual window is asked to be closed, and something else if an application as a whole is...).
This commit is contained in:
parent
d1c0b9b29d
commit
fa880a71cc
|
@ -280,6 +280,7 @@ mainloop:
|
|||
// l.SetText(curtime.String())
|
||||
_=curtime
|
||||
case <-w.Closing:
|
||||
println("window closed event received")
|
||||
break mainloop
|
||||
case <-b.Clicked:
|
||||
w.SetTitle(fmt.Sprintf("%v | %s | %s | %s | %s",
|
||||
|
|
Loading…
Reference in New Issue