mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 04:42:00 +08:00
fix: [v2] win runtime.WindowMinimise()
This commit is contained in:
parent
0593c29784
commit
b32c5b7ba2
@ -211,7 +211,11 @@ func (f *Frontend) WindowUnmaximise() {
|
||||
}
|
||||
func (f *Frontend) WindowMinimise() {
|
||||
runtime.LockOSThread()
|
||||
f.mainWindow.Minimise()
|
||||
if f.hasStarted {
|
||||
f.mainWindow.Minimise()
|
||||
} else {
|
||||
f.frontendOptions.WindowStartState = options.Minimised
|
||||
}
|
||||
}
|
||||
func (f *Frontend) WindowUnminimise() {
|
||||
runtime.LockOSThread()
|
||||
|
Loading…
Reference in New Issue
Block a user