Skip to content

Commit 3013b1c

Browse files
author
Sven
committed
style: save will clos window
1 parent bd0634e commit 3013b1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

JSONSwiftModelApp/Base.lproj/Main.storyboard

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@
679679
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
680680
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
681681
</objects>
682-
<point key="canvasLocation" x="75" y="0.0"/>
682+
<point key="canvasLocation" x="75" y="-54"/>
683683
</scene>
684684
<!--Window Controller-->
685685
<scene sceneID="R2V-B0-nI4">
@@ -700,7 +700,7 @@
700700
</windowController>
701701
<customObject id="6f7-a7-6o1" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
702702
</objects>
703-
<point key="canvasLocation" x="75" y="250"/>
703+
<point key="canvasLocation" x="75" y="199"/>
704704
</scene>
705705
<!--Config-->
706706
<scene sceneID="hIz-AP-VOD">
@@ -715,7 +715,7 @@
715715
<constraints>
716716
<constraint firstAttribute="width" constant="80" id="d4P-8t-FRZ"/>
717717
</constraints>
718-
<textFieldCell key="cell" lineBreakMode="clipping" title="confrom:" id="4pL-cK-xpO">
718+
<textFieldCell key="cell" lineBreakMode="clipping" title="Confrom:" id="4pL-cK-xpO">
719719
<font key="font" metaFont="systemMedium" size="16"/>
720720
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
721721
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>

JSONSwiftModelApp/ConfigViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ConfigViewController: NSViewController {
4646

4747
@IBAction func saveButtonTap(_ sender: NSButton) {
4848
saveToUserDefault()
49-
// FIXME: - 怎么关闭窗口
49+
view.window?.close()
5050
}
5151

5252
}

0 commit comments

Comments
 (0)