Skip to content

Commit

Permalink
Removed old attemps at fixing @4332weizi 's problem where they couldn…
Browse files Browse the repository at this point in the history
…'t close the AddWindow.
  • Loading branch information
noah-nuebling committed Mar 29, 2021
1 parent 48c7c6d commit 01bf63f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions App/AddWindow/AddWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ @implementation AddWindowController
static BOOL _pointerIsInsideAddField;
// Init
+ (void)initialize {
// This initialize function was apparently called twice (but weirdly only on some machines) leading to issues. See https://github.com/noah-nuebling/mac-mouse-fix/pull/80
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_instance = [[AddWindowController alloc] initWithWindowNibName:@"AddWindow"];
Expand Down Expand Up @@ -65,9 +66,6 @@ + (void)begin {
}
+ (void)end {
[AppDelegate.mainWindow endSheet:_instance.window];
// @4332weizi had trouble closing the window. I have now clue why. Maybe using this v instead of just this ^ helps.
[_instance.window close];
[_instance.window orderOut:nil];
}
+ (void)handleReceivedAddModeFeedbackFromHelperWithPayload:(NSDictionary *)payload {
// Tint plus icon to give visual feedback
Expand Down
2 changes: 1 addition & 1 deletion App/SupportFiles/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>5077</string>
<string>5078</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit 01bf63f

Please sign in to comment.