Add app closing behavior setting
This commit is contained in:
parent
907eb598e3
commit
cbfed97853
8 changed files with 73 additions and 1 deletions
ui/component/settingClosingBehavior
15
ui/component/settingClosingBehavior/index.js
Normal file
15
ui/component/settingClosingBehavior/index.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { SETTINGS } from 'lbry-redux';
|
||||
import { doSetAppToTrayWhenClosed } from 'redux/actions/settings';
|
||||
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
||||
import SettingClosingBehavior from './view';
|
||||
|
||||
const select = state => ({
|
||||
toTrayWhenClosed: makeSelectClientSetting(SETTINGS.TO_TRAY_WHEN_CLOSED)(state),
|
||||
});
|
||||
|
||||
const perform = dispatch => ({
|
||||
setToTrayWhenClosed: value => dispatch(doSetAppToTrayWhenClosed(value)),
|
||||
});
|
||||
|
||||
export default connect(select, perform)(SettingClosingBehavior);
|
Loading…
Add table
Add a link
Reference in a new issue