5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:31:58 +08:00

fix: [v2] win runtime.WindowMaximise()

This commit is contained in:
redraskal 2022-01-10 22:59:40 -06:00
parent 0d402492db
commit 0593c29784
No known key found for this signature in database
GPG Key ID: 768633FAC02DDFFA

View File

@ -199,7 +199,11 @@ func (f *Frontend) WindowHide() {
}
func (f *Frontend) WindowMaximise() {
runtime.LockOSThread()
f.mainWindow.Maximise()
if f.hasStarted {
f.mainWindow.Maximise()
} else {
f.frontendOptions.WindowStartState = options.Maximised
}
}
func (f *Frontend) WindowUnmaximise() {
runtime.LockOSThread()