From 981ac464b5199e19d81daab5b63729f1a1271694 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Fri, 28 Sep 2018 17:45:03 +0200 Subject: [PATCH] update: remove unsaved --- src/renderer/pages/preferences-page.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/pages/preferences-page.js b/src/renderer/pages/preferences-page.js index 52ebe7ee..3dd32adf 100644 --- a/src/renderer/pages/preferences-page.js +++ b/src/renderer/pages/preferences-page.js @@ -67,7 +67,7 @@ class PreferencesPage extends React.Component { @@ -113,7 +113,7 @@ class PreferencesPage extends React.Component { { this.handleAutoAddTorrentsChange(e, value) }} /> @@ -122,7 +122,7 @@ class PreferencesPage extends React.Component { } handleAutoAddTorrentsChange (e, isChecked) { - const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath + const torrentsFolderPath = this.props.state.saved.prefs.torrentsFolderPath if (isChecked && !torrentsFolderPath) { alert('Select a torrents folder first.') // eslint-disable-line e.preventDefault() @@ -140,7 +140,7 @@ class PreferencesPage extends React.Component { } torrentsFolderPathSelector () { - const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath + const torrentsFolderPath = this.props.state.saved.prefs.torrentsFolderPath return (