Keep installed date
This commit is contained in:
1 file changed
+1
-12
@@ -22,9 +22,7 @@ export default function ManageVersionPopup () {
|
|||||||
setPopupMode,
|
setPopupMode,
|
||||||
setSelectedVersionList,
|
setSelectedVersionList,
|
||||||
downloadVersions,
|
downloadVersions,
|
||||||
uninstallVersion,
|
uninstallVersion
|
||||||
versions,
|
|
||||||
launchesList
|
|
||||||
} = useGlobal()
|
} = useGlobal()
|
||||||
const [versionSize, setVersionSize] = useState<number>(0)
|
const [versionSize, setVersionSize] = useState<number>(0)
|
||||||
|
|
||||||
@@ -115,15 +113,6 @@ export default function ManageVersionPopup () {
|
|||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
closePopup()
|
closePopup()
|
||||||
uninstallVersion(managingVersion)
|
uninstallVersion(managingVersion)
|
||||||
if (!versionInfo) return
|
|
||||||
|
|
||||||
const gameLaunches = { ...launchesList[versionInfo.game] }
|
|
||||||
delete gameLaunches[versionInfo.id]
|
|
||||||
|
|
||||||
await versions?.set('launches', {
|
|
||||||
...launchesList,
|
|
||||||
[versionInfo.game]: gameLaunches
|
|
||||||
})
|
|
||||||
}}
|
}}
|
||||||
title='Click to uninstall this game. This will NOT remove any progress or any save files.'
|
title='Click to uninstall this game. This will NOT remove any progress or any save files.'
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user