Skip to content

Commit 2740179

Browse files
committed
Fixed issue with Library selector dropdown
1 parent f7cd351 commit 2740179

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

SwiftyJSONAccelerator/Storyboard/Base.lproj/Main.storyboard

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,12 +753,13 @@
753753
</box>
754754
<popUpButton verticalHuggingPriority="750" springLoaded="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r5l-Lv-rfg">
755755
<rect key="frame" x="10" y="35" width="348" height="26"/>
756-
<popUpButtonCell key="cell" type="push" title="SwiftyJSON" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" arrowPosition="arrowAtCenter" autoenablesItems="NO" altersStateOfSelectedItem="NO" id="l4o-yX-zdG">
756+
<popUpButtonCell key="cell" type="push" title="SwiftyJSON (Default)" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="border" imageScaling="proportionallyDown" inset="2" pullsDown="YES" arrowPosition="arrowAtCenter" autoenablesItems="NO" id="l4o-yX-zdG">
757757
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
758758
<font key="font" metaFont="menu"/>
759759
<menu key="menu" autoenablesItems="NO" id="QJi-PT-im1">
760760
<items>
761-
<menuItem title="SwiftyJSON" state="on" id="0QP-u9-O6V"/>
761+
<menuItem title="SwiftyJSON (Default)" id="0QP-u9-O6V"/>
762+
<menuItem title="SwiftyJSON" id="mkQ-rW-3gF"/>
762763
<menuItem title="ObjectMapper" id="FPc-o9-hXy"/>
763764
<menuItem title="Marshal" id="7Q8-u2-Yfm"/>
764765
</items>

SwiftyJSONAccelerator/UI/SJEditorViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
155155
}
156156

157157
func libraryForIndex(_ index: Int) -> JSONMappingLibrary {
158-
if index == 1 {
158+
if index == 2 {
159159
return JSONMappingLibrary.ObjectMapper
160-
} else if index == 2 {
160+
} else if index == 3 {
161161
return JSONMappingLibrary.Marshal
162162
}
163163
return JSONMappingLibrary.SwiftyJSON

0 commit comments

Comments
 (0)