Browse Source

Sorting options are non-hidden by default.

pull/92/head
Abhishek 5 years ago
parent
commit
63ea68b0de
  1. 6
      Clocker/Preferences/General/PreferencesViewController.swift
  2. 5
      Clocker/Preferences/Preferences.storyboard

6
Clocker/Preferences/General/PreferencesViewController.swift

@ -45,7 +45,6 @@ class PreferencesViewController: ParentViewController {
@IBOutlet private var timezoneTableView: NSTableView! @IBOutlet private var timezoneTableView: NSTableView!
@IBOutlet private var availableTimezoneTableView: NSTableView! @IBOutlet private var availableTimezoneTableView: NSTableView!
@IBOutlet private var timezonePanel: Panelr! @IBOutlet private var timezonePanel: Panelr!
@IBOutlet private var stackView: NSStackView!
@IBOutlet private var progressIndicator: NSProgressIndicator! @IBOutlet private var progressIndicator: NSProgressIndicator!
@IBOutlet private var addButton: NSButton! @IBOutlet private var addButton: NSButton!
@IBOutlet private var recorderControl: SRRecorderControl! @IBOutlet private var recorderControl: SRRecorderControl!
@ -69,8 +68,9 @@ class PreferencesViewController: ParentViewController {
@IBOutlet var sortToggle: NSButton! @IBOutlet var sortToggle: NSButton!
private var themeDidChangeNotification: NSObjectProtocol? private var themeDidChangeNotification: NSObjectProtocol?
private var selectionsDataSource: PreferencesDataSource!
// Selected Timezones Data Source
private var selectionsDataSource: PreferencesDataSource!
// Search Results Data Source Handler // Search Results Data Source Handler
private var searchResultsDataSource: SearchDataSource! private var searchResultsDataSource: SearchDataSource!
@ -219,7 +219,7 @@ class PreferencesViewController: ParentViewController {
deleteButton.isEnabled = false deleteButton.isEnabled = false
[placeholderLabel, additionalSortOptions].forEach { $0.isHidden = true } [placeholderLabel].forEach { $0.isHidden = true }
messageLabel.stringValue = CLEmptyString messageLabel.stringValue = CLEmptyString

5
Clocker/Preferences/Preferences.storyboard

@ -489,7 +489,7 @@
<rect key="frame" x="-100" y="-100" width="219" height="16"/> <rect key="frame" x="-100" y="-100" width="219" height="16"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" arrowsPosition="none" controlSize="mini" horizontal="NO" id="1lL-VM-dm3" customClass="ClockerScroller" customModule="Clocker" customModuleProvider="target"> <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" arrowsPosition="none" controlSize="mini" horizontal="NO" id="1lL-VM-dm3">
<rect key="frame" x="325" y="1" width="14" height="180"/> <rect key="frame" x="325" y="1" width="14" height="180"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
@ -1630,7 +1630,6 @@ CA
<outlet property="recorderControl" destination="PbD-dt-goz" id="ZH4-DH-X0L"/> <outlet property="recorderControl" destination="PbD-dt-goz" id="ZH4-DH-X0L"/>
<outlet property="searchField" destination="Dha-h9-Nd0" id="SNI-zE-aNT"/> <outlet property="searchField" destination="Dha-h9-Nd0" id="SNI-zE-aNT"/>
<outlet property="sortToggle" destination="VGu-Z8-ktt" id="7dH-BI-HrP"/> <outlet property="sortToggle" destination="VGu-Z8-ktt" id="7dH-BI-HrP"/>
<outlet property="stackView" destination="1sT-pO-jK4" id="VKO-mK-cJO"/>
<outlet property="startAtLoginLabel" destination="aCf-xC-UkE" id="dZk-TD-VBU"/> <outlet property="startAtLoginLabel" destination="aCf-xC-UkE" id="dZk-TD-VBU"/>
<outlet property="startupCheckbox" destination="aGE-ap-6NE" id="G1Q-Rq-gYE"/> <outlet property="startupCheckbox" destination="aGE-ap-6NE" id="G1Q-Rq-gYE"/>
<outlet property="tableview" destination="eI7-Vb-R7J" id="vgV-nN-mEQ"/> <outlet property="tableview" destination="eI7-Vb-R7J" id="vgV-nN-mEQ"/>
@ -1645,7 +1644,7 @@ CA
<windowStyleMask key="styleMask" closable="YES" miniaturizable="YES" nonactivatingPanel="YES"/> <windowStyleMask key="styleMask" closable="YES" miniaturizable="YES" nonactivatingPanel="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="120" y="64" width="345" height="320"/> <rect key="contentRect" x="120" y="64" width="345" height="320"/>
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/> <rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
<value key="minSize" type="size" width="345" height="320"/> <value key="minSize" type="size" width="345" height="320"/>
<value key="maxSize" type="size" width="345" height="320"/> <value key="maxSize" type="size" width="345" height="320"/>
<view key="contentView" id="MAe-t5-3A2"> <view key="contentView" id="MAe-t5-3A2">

Loading…
Cancel
Save