2019-11-18 19:30:15 +01:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import { FormField } from 'component/common/form';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
autoLaunch: string,
|
|
|
|
showToast: ({}) => void,
|
2021-08-05 10:41:45 +02:00
|
|
|
setAutoLaunch: (boolean) => void,
|
|
|
|
noLabels?: boolean,
|
2019-11-18 19:30:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
function SettingAutoLaunch(props: Props) {
|
2021-08-05 10:41:45 +02:00
|
|
|
const { autoLaunch, setAutoLaunch, noLabels } = props;
|
2019-11-18 19:30:15 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<FormField
|
|
|
|
type="checkbox"
|
|
|
|
name="autolaunch"
|
2021-08-05 10:41:45 +02:00
|
|
|
onChange={(e) => {
|
2019-11-18 19:30:15 +01:00
|
|
|
setAutoLaunch(e.target.checked);
|
|
|
|
}}
|
|
|
|
checked={autoLaunch}
|
2021-08-05 10:41:45 +02:00
|
|
|
label={noLabels ? '' : __('Start minimized')}
|
|
|
|
helper={
|
|
|
|
noLabels
|
|
|
|
? ''
|
|
|
|
: __('Improve view speed and help the LBRY network by allowing the app to cuddle up in your system tray.')
|
|
|
|
}
|
2019-11-18 19:30:15 +01:00
|
|
|
/>
|
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingAutoLaunch;
|