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: {},