mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:52:29 +08:00

* Test release workflow * Update release.yml * Update release.yml * add linux deps * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Update release.yml * Fix: Misc tests * Fix: Misc tests + linux build tags * Fix: Bindings tests + move templates to pkg. Add json schema for templates * Fix: template tests * Add tests to release workflow. Test for go 1.18 + go 1.19 Fix: ignore .m files for non darwin builds. Fix watcher test. Fix warning in clilogger. * Fix release pipeline * Matrix for tests * Rename templates to make tests work * Update template test * Debug template test * Debug template test * Debug template test * Fix gitignore * Update release.yml
39 lines
976 B
Objective-C
39 lines
976 B
Objective-C
//go:build darwin
|
|
//
|
|
// WindowDelegate.m
|
|
// test
|
|
//
|
|
// Created by Lea Anthony on 10/10/21.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "WindowDelegate.h"
|
|
#import "message.h"
|
|
#import "WailsContext.h"
|
|
|
|
@implementation WindowDelegate
|
|
- (BOOL)windowShouldClose:(WailsWindow *)sender {
|
|
if( self.hideOnClose ) {
|
|
[NSApp hide:nil];
|
|
return false;
|
|
}
|
|
processMessage("Q");
|
|
return false;
|
|
}
|
|
|
|
- (void)windowDidExitFullScreen:(NSNotification *)notification {
|
|
[self.ctx.mainWindow applyWindowConstraints];
|
|
}
|
|
|
|
- (void)windowWillEnterFullScreen:(NSNotification *)notification {
|
|
[self.ctx.mainWindow disableWindowConstraints];
|
|
}
|
|
|
|
- (NSApplicationPresentationOptions)window:(WailsWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions {
|
|
return NSApplicationPresentationAutoHideToolbar | NSApplicationPresentationAutoHideMenuBar | NSApplicationPresentationFullScreen;
|
|
}
|
|
|
|
|
|
@end
|