Skip to content

Commit 225fbd5

Browse files
committed
Correct wiring of hook-failed sheet actions
Fixes #119
1 parent e3f1422 commit 225fbd5

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Classes/Views/PBCommitHookFailedSheet.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ - (IBAction)forceCommit:(id)sender
4747
[self acceptSheet:sender];
4848
}
4949

50+
- (IBAction)closeMessageSheet:(id)sender
51+
{
52+
[self cancelSheet:sender];
53+
}
54+
5055
@end

Resources/XIBs/PBCommitHookFailedSheet.xib

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12120" systemVersion="16E195" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16G29" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12120"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<objects>
@@ -21,7 +21,7 @@
2121
<windowStyleMask key="styleMask" titled="YES"/>
2222
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
2323
<rect key="contentRect" x="196" y="331" width="540" height="179"/>
24-
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1177"/>
24+
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
2525
<view key="contentView" id="2">
2626
<rect key="frame" x="0.0" y="0.0" width="540" height="179"/>
2727
<autoresizingMask key="autoresizingMask"/>
@@ -42,7 +42,7 @@ DQ
4242
</string>
4343
</buttonCell>
4444
<connections>
45-
<action selector="closeMessageSheet:" target="-2" id="19"/>
45+
<action selector="closeMessageSheet:" target="-2" id="34e-bS-8OZ"/>
4646
</connections>
4747
</button>
4848
<imageView translatesAutoresizingMaskIntoConstraints="NO" id="7">
@@ -68,15 +68,15 @@ DQ
6868
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
6969
<subviews>
7070
<textView editable="NO" drawsBackground="NO" importsGraphics="NO" richText="NO" horizontallyResizable="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" id="14">
71-
<rect key="frame" x="0.0" y="0.0" width="425" height="72"/>
71+
<rect key="frame" x="0.0" y="0.0" width="424" height="72"/>
7272
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
7373
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
7474
<size key="minSize" width="424" height="72"/>
7575
<size key="maxSize" width="1000" height="10000000"/>
7676
<attributedString key="textStorage">
7777
<fragment content="&lt;info&gt;">
7878
<attributes>
79-
<font key="NSFont" metaFont="system" size="12"/>
79+
<font key="NSFont" metaFont="cellTitle"/>
8080
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0" allowsDefaultTighteningForTruncation="NO"/>
8181
</attributes>
8282
</fragment>

0 commit comments

Comments
 (0)