Compare commits

..

3 Commits

Author SHA1 Message Date
Lea Anthony
163c0d9e67 v1.16.1-pre2 2021-04-05 22:03:07 +10:00
RH12503
80fc072ad7 Support OSX 10.6 for fullscreen (#653)
* Disable full screen button

* Fixed disabling of fullscreen button

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2021-04-05 22:02:35 +10:00
RH12503
37de2075ba Revert "Disable full screen button (#650)" (#652)
This reverts commit ab825b3f11.
2021-04-05 22:02:11 +10:00
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
package cmd
// Version - Wails version
const Version = "v1.16.1-pre1"
const Version = "v1.16.1-pre2"

View File

@@ -2337,10 +2337,10 @@ struct webview_priv
size.width = width;
size.height = height;
[w->priv.window setMaxSize:size];
dispatch_async(dispatch_get_main_queue(), ^{
[[w->priv.window standardWindowButton:NSWindowZoomButton] setEnabled: NO];
});
NSButton *button = [w->priv.window standardWindowButton:NSWindowZoomButton];
[button performSelectorOnMainThread:@selector(setEnabled:) withObject:NO
waitUntilDone:NO];
}
WEBVIEW_API void webview_set_fullscreen(struct webview *w, int fullscreen)