mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[darwin] implement isNormal
This commit is contained in:
@@ -853,6 +853,10 @@ func (w *macosWebviewWindow) hide() {
|
||||
C.windowHide(w.nsWindow)
|
||||
}
|
||||
|
||||
func (w *macosWebviewWindow) isNormal() bool {
|
||||
return !w.isMinimised() && !w.isMaximised() && !w.isFullscreen()
|
||||
}
|
||||
|
||||
func (w *macosWebviewWindow) setFullscreenButtonEnabled(enabled bool) {
|
||||
C.setFullscreenButtonEnabled(w.nsWindow, C.bool(enabled))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user