Add --no-updater flag
Summary: Provide a `--no-updater` option that disables the in-app auto updater when passed. Reviewed By: jknoxville Differential Revision: D13713919 fbshipit-source-id: 49a647105fea1efa23f653e4a6ed452b3489879b
This commit is contained in:
committed by
Facebook Github Bot
parent
87f64c4535
commit
82f4d4ad95
@@ -27,6 +27,7 @@ import DevicesButton from './DevicesButton.js';
|
||||
import ScreenCaptureButtons from './ScreenCaptureButtons.js';
|
||||
import AutoUpdateVersion from './AutoUpdateVersion.js';
|
||||
import config from '../fb-stubs/config.js';
|
||||
import {isAutoUpdaterEnabled} from '../utils/argvUtils.js';
|
||||
|
||||
const AppTitleBar = styled(FlexRow)(({focused}) => ({
|
||||
background: focused
|
||||
@@ -65,7 +66,7 @@ class TitleBar extends Component<Props> {
|
||||
<DevicesButton />
|
||||
<ScreenCaptureButtons />
|
||||
<Spacer />
|
||||
{process.platform === 'darwin' ? <AutoUpdateVersion /> : null}
|
||||
{isAutoUpdaterEnabled() ? <AutoUpdateVersion /> : null}
|
||||
{config.bugReportButtonVisible && (
|
||||
<Button
|
||||
compact={true}
|
||||
|
||||
Reference in New Issue
Block a user