Fix AlwaysOnTop code for Mac

This commit is contained in:
Lea Anthony
2022-06-22 21:36:57 +10:00
parent 91afa396ba
commit e504d1124a
2 changed files with 2 additions and 2 deletions
@@ -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;
ON_MAIN_THREAD(
[ctx SetAlwaysOnTop:onTop];
@@ -157,7 +157,7 @@ func (f *Frontend) WindowCenter() {
f.mainWindow.Center()
}
func (f *Frontend) WindowSetAlwaysOnTop(onTop bool) {
f.mainWindow.AlwaysOnTop(onTop)
f.mainWindow.SetAlwaysOnTop(onTop)
}
func (f *Frontend) WindowSetPosition(x, y int) {