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

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
parent d51268b8d0
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)
}