I've always wondered why the property Sleep of the Application class is stackable? How can this behaviour be useful?
In fact I created my own base function in Hollywood to prevent the stacking nature of this property.
Code: Select all
Function base:SafeSleep(window,state)
If mui.Get(window, "sleep") = Not(state) Then mui.Set(window, "sleep", state)
EndFunction