Skip to content

Commit

Permalink
Merge pull request #80 from 4332weizi/feature-remap
Browse files Browse the repository at this point in the history
@4332weizi fixed an issue where the AddWindow sometimes couldn't be closed.
  • Loading branch information
noah-nuebling authored Mar 29, 2021
2 parents 1c13271 + 71585bb commit 48c7c6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions App/AddWindow/AddWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ @implementation AddWindowController
static BOOL _pointerIsInsideAddField;
// Init
+ (void)initialize {
_instance = [[AddWindowController alloc] initWithWindowNibName:@"AddWindow"];
_pointerIsInsideAddField = NO;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_instance = [[AddWindowController alloc] initWithWindowNibName:@"AddWindow"];
_pointerIsInsideAddField = NO;
});
}
- (void)windowDidLoad {
[super windowDidLoad];
Expand Down

0 comments on commit 48c7c6d

Please sign in to comment.