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:
parent
0d402492db
commit
0593c29784
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user