Skip to content

Commit

Permalink
Fixed a bug in the group view where you could click the toggle list v…
Browse files Browse the repository at this point in the history
…iew/grid view button while it was open
  • Loading branch information
DrabWeb committed Apr 1, 2016
1 parent 93f072c commit a3d1586
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Komikan/Komikan/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ MgA3AEEARwBQAFcAXABkAHkAewB9AH8AgQCLAJAAlQCgAKMApQCnAKkArgC5AMIAygDNANYA2wDoAOwA
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="6vR-dx-5nf">
<rect key="frame" x="464" y="0.0" width="16" height="270"/>
<rect key="frame" x="465" y="0.0" width="15" height="270"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
Expand Down
6 changes: 6 additions & 0 deletions Komikan/Komikan/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ class ViewController: NSViewController, NSTabViewDelegate, NSWindowDelegate {
titlebarSearchField.enabled = false;
titlebarSearchField.hidden = true;

// Disable the view switch button
titlebarToggleListViewCheckbox.enabled = false;

// Set the select search field menu item's action
(NSApplication.sharedApplication().delegate as? AppDelegate)?.selectSearchFieldMenuItem.action = Selector("selectGroupViewSearchField");

Expand Down Expand Up @@ -621,6 +624,9 @@ class ViewController: NSViewController, NSTabViewDelegate, NSWindowDelegate {
titlebarSearchField.enabled = true;
titlebarSearchField.hidden = false;

// Enable the view switch button
titlebarToggleListViewCheckbox.enabled = true;

// Set the select search field menu item's action
(NSApplication.sharedApplication().delegate as? AppDelegate)?.selectSearchFieldMenuItem.action = Selector("selectSearchField");

Expand Down

0 comments on commit a3d1586

Please sign in to comment.