Skip to content

Commit e2d4dd4

Browse files
lolgearlucasderraugh
authored andcommitted
Drag and drop to welcome window: Small bug fix (#582)
Fix image view obscuring drag and drop target
1 parent 15f317b commit e2d4dd4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

GitUp/Application/Base.lproj/MainMenu.xib

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,9 @@ UI design by Wayne Fan</string>
12791279
</connections>
12801280
</customView>
12811281
</subviews>
1282+
<connections>
1283+
<outlet property="imageView" destination="Apd-kA-Fr2" id="22r-bO-hHz"/>
1284+
</connections>
12821285
</view>
12831286
<color key="fillColor" name="windowBackgroundColor" catalog="System" colorSpace="catalog"/>
12841287
</box>

GitUp/Application/WelcomeWindow.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ - (void)_openRepositoryWithURL:(NSURL*)url withCloneMode:(CloneMode)cloneMode wi
1717

1818
@interface WelcomeWindowView : NSView <NSDraggingDestination>
1919
@property (weak, nonatomic, readonly) AppDelegate *appDelegate;
20+
@property (weak, nonatomic) IBOutlet NSImageView *imageView;
2021
@property (assign, nonatomic) BOOL receivingDrag;
2122
@end
2223

@@ -29,6 +30,7 @@ - (AppDelegate *)appDelegate {
2930

3031
#pragma mark - Setup
3132
- (void)setup {
33+
[self.imageView unregisterDraggedTypes];
3234
[self registerForDraggedTypes:@[NSURLPboardType]];
3335
}
3436

0 commit comments

Comments
 (0)