From 42413cffffd973c34618cf22e521eab2c728a2e7 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 22 Jun 2018 15:18:08 -0400 Subject: [PATCH] set default search results to 50 --- src/renderer/component/fileListSearch/index.js | 1 - src/renderer/page/search/view.jsx | 6 +++--- src/renderer/redux/reducers/settings.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/renderer/component/fileListSearch/index.js b/src/renderer/component/fileListSearch/index.js index 5b6d96713..5f4011e2d 100644 --- a/src/renderer/component/fileListSearch/index.js +++ b/src/renderer/component/fileListSearch/index.js @@ -6,7 +6,6 @@ const select = (state, props) => ({ uris: makeSelectSearchUris(props.query)(state), downloadUris: selectSearchDownloadUris(props.query)(state), isSearching: selectIsSearching(state), - resultCount: makeSelectClientSetting(settings.RESULT_COUNT)(state), }); const perform = () => ({}); diff --git a/src/renderer/page/search/view.jsx b/src/renderer/page/search/view.jsx index dd909d8b3..c2514a37b 100644 --- a/src/renderer/page/search/view.jsx +++ b/src/renderer/page/search/view.jsx @@ -26,7 +26,7 @@ class SearchPage extends React.PureComponent { } onSearchResultCountChange(event: SyntheticInputEvent<*>) { - const count = event.target.value; + const count = Number(event.target.value); this.props.setClientSetting(settings.RESULT_COUNT, count); } @@ -43,7 +43,7 @@ class SearchPage extends React.PureComponent { { name="show_unavailable" onChange={this.onShowUnavailableChange} checked={showUnavailable} - postfix={__('Show unavailable content')} + postfix={__('Include unavailable content')} /> diff --git a/src/renderer/redux/reducers/settings.js b/src/renderer/redux/reducers/settings.js index f3696b625..383b76161 100644 --- a/src/renderer/redux/reducers/settings.js +++ b/src/renderer/redux/reducers/settings.js @@ -25,7 +25,7 @@ const defaultState = { themes: getLocalStorageSetting(SETTINGS.THEMES, []), automaticDarkModeEnabled: getLocalStorageSetting(SETTINGS.AUTOMATIC_DARK_MODE_ENABLED, false), autoplay: getLocalStorageSetting(SETTINGS.AUTOPLAY, false), - resultCount: Number(getLocalStorageSetting(SETTINGS.RESULT_COUNT, 10)), + resultCount: Number(getLocalStorageSetting(SETTINGS.RESULT_COUNT, 50)), }, isNight: false, languages: {},