Fix being able to update while downloads are in progress
This commit is contained in:
@@ -20,6 +20,7 @@ export default function Installs () {
|
|||||||
setFadeOut,
|
setFadeOut,
|
||||||
setSelectedVersionList,
|
setSelectedVersionList,
|
||||||
downloadedVersionsConfig,
|
downloadedVersionsConfig,
|
||||||
|
downloadProgress,
|
||||||
normalConfig,
|
normalConfig,
|
||||||
setManagingVersion,
|
setManagingVersion,
|
||||||
getVersionInfo,
|
getVersionInfo,
|
||||||
@@ -301,6 +302,10 @@ export default function Installs () {
|
|||||||
!(
|
!(
|
||||||
platform() === 'linux' &&
|
platform() === 'linux' &&
|
||||||
getVersionInfo(entry)?.wine
|
getVersionInfo(entry)?.wine
|
||||||
|
) ||
|
||||||
|
needsRevisionUpdate(
|
||||||
|
getVersionInfo(entry)?.lastRevision,
|
||||||
|
entry
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
@@ -460,7 +465,12 @@ export default function Installs () {
|
|||||||
entry
|
entry
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
title='Click to update the game'
|
disabled={downloadProgress.length != 0}
|
||||||
|
title={
|
||||||
|
downloadProgress.length != 0
|
||||||
|
? 'Cannot update while downloads are in progress '
|
||||||
|
: 'Click to update the game'
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Update
|
Update
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user