Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Only show a checkmark for Working Set Sort when Automatic Sort is on #7845

Merged
merged 1 commit into from
Jun 9, 2014

Conversation

TomMalbran
Copy link
Contributor

@njx This is a fix for the checkmarks issue in #7844.

CommandManager.get(Commands.SORT_WORKINGSET_AUTO).setChecked(_automaticSort);
PreferencesManager.setViewState("automaticSort", enable);
CommandManager.get(Commands.SORT_WORKINGSET_AUTO).setChecked(enable);
_currentSort.setChecked(enable);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't currentSort always be checked? I've not seen a situation where this isn't the case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i should have said: isn't it always checked...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not with this PR. Current Sort is only checked when Automatic Sort is checked.

If the current sort is checked, and you manually sort the files, it gets unchecked,

@JeffryBooher
Copy link
Contributor

Seems to work as desired. Merging

JeffryBooher added a commit that referenced this pull request Jun 9, 2014
Only show a checkmark for Working Set Sort when Automatic Sort is on
@JeffryBooher JeffryBooher merged commit c37c014 into master Jun 9, 2014
@JeffryBooher JeffryBooher deleted the tom/ws-sort-checks branch June 9, 2014 18:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants