Skip to content

Commit

Permalink
Deselecting when hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
wistcc committed Jul 30, 2017
1 parent 1066e61 commit de08aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ store.on('stateChanged', (newState, oldState) => {
if (newState.selectedSubdirectory !== oldState.selectedSubdirectory) {
if (newState.selectedSubdirectory !== null) {
documentHelper.selectSubdirectory();
} else {
documentHelper.deselectSubdirectory();
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ const checkForUpdates = () => {

// When main-window is hidden, reset filter
ipcRenderer.on('clear-filter', () => {
deselectSubdirectory();
store.setState({
directoryFilter: '',
selectedSubdirectory: null
Expand All @@ -294,6 +295,5 @@ module.exports = {
init,
appendDirectories,
checkForUpdates,
selectSubdirectory,
deselectSubdirectory
selectSubdirectory
};

0 comments on commit de08aa5

Please sign in to comment.