5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:39:30 +08:00

Fix AlwaysOnTop code for Mac

This commit is contained in:
Lea Anthony 2022-06-22 21:36:57 +10:00
parent 91afa396ba
commit e504d1124a
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ void SetSize(void* inctx, int width, int height) {
); );
} }
void SetAlwaysOnTop(void* ctx, int onTop) { void SetAlwaysOnTop(void* inctx, int onTop) {
WailsContext *ctx = (__bridge WailsContext*) inctx; WailsContext *ctx = (__bridge WailsContext*) inctx;
ON_MAIN_THREAD( ON_MAIN_THREAD(
[ctx SetAlwaysOnTop:onTop]; [ctx SetAlwaysOnTop:onTop];

View File

@ -157,7 +157,7 @@ func (f *Frontend) WindowCenter() {
f.mainWindow.Center() f.mainWindow.Center()
} }
func (f *Frontend) WindowSetAlwaysOnTop(onTop bool) { func (f *Frontend) WindowSetAlwaysOnTop(onTop bool) {
f.mainWindow.AlwaysOnTop(onTop) f.mainWindow.SetAlwaysOnTop(onTop)
} }
func (f *Frontend) WindowSetPosition(x, y int) { func (f *Frontend) WindowSetPosition(x, y int) {