Add missing runtime.UnlockOSThread() (#2994)

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Carl Seleborg 2023-10-21 07:30:48 +02:00 committed by GitHub
commit b5406cb13e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,6 +211,7 @@ func (f *Frontend) WindowCenter() {
func (f *Frontend) WindowSetAlwaysOnTop(b bool) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
f.mainWindow.SetAlwaysOnTop(b)
}