Allow manual check for updates on test

But, don't auto check for them
This commit is contained in:
Becca 2022-02-02 13:09:01 -05:00
parent 00e7b65ef3
commit e6a9d91c54

View file

@ -302,8 +302,14 @@ export class App extends React.Component<IAppProps, IAppState> {
this.props.dispatcher.installGlobalLFSFilters(false)
setInterval(() => this.checkForUpdates(true), UpdateCheckInterval)
this.checkForUpdates(true)
// We only want to automatically check for updates on beta and prod
if (
__RELEASE_CHANNEL__ !== 'development' &&
__RELEASE_CHANNEL__ !== 'test'
) {
setInterval(() => this.checkForUpdates(true), UpdateCheckInterval)
this.checkForUpdates(true)
}
log.info(`launching: ${getVersion()} (${getOS()})`)
log.info(`execPath: '${process.execPath}'`)
@ -555,14 +561,7 @@ export class App extends React.Component<IAppProps, IAppState> {
}
private checkForUpdates(inBackground: boolean) {
if (__LINUX__) {
return
}
if (
__RELEASE_CHANNEL__ === 'development' ||
__RELEASE_CHANNEL__ === 'test'
) {
if (__LINUX__ || __RELEASE_CHANNEL__ === 'development') {
return
}