Make reinstall button change popup to downloads popup stead
This commit is contained in:
@@ -800,9 +800,6 @@ export default function RootLayout ({
|
|||||||
list: updatedList
|
list: updatedList
|
||||||
}
|
}
|
||||||
writeVersionsConfig(updatedConfig)
|
writeVersionsConfig(updatedConfig)
|
||||||
setManagingVersion(null)
|
|
||||||
setFadeOut(true)
|
|
||||||
setTimeout(() => setShowPopup(false), 200)
|
|
||||||
return updatedConfig
|
return updatedConfig
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -824,9 +821,11 @@ export default function RootLayout ({
|
|||||||
className='button btntheme2'
|
className='button btntheme2'
|
||||||
disabled={downloadProgress.length != 0}
|
disabled={downloadProgress.length != 0}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
//uninstall
|
//change popup to downloads
|
||||||
closePopup()
|
setManagingVersion(null)
|
||||||
|
setPopupMode(1)
|
||||||
|
|
||||||
|
//uninstall
|
||||||
setDownloadedVersionsConfig(prev => {
|
setDownloadedVersionsConfig(prev => {
|
||||||
if (!prev) return prev
|
if (!prev) return prev
|
||||||
const updatedList = Object.fromEntries(
|
const updatedList = Object.fromEntries(
|
||||||
@@ -839,9 +838,6 @@ export default function RootLayout ({
|
|||||||
list: updatedList
|
list: updatedList
|
||||||
}
|
}
|
||||||
writeVersionsConfig(updatedConfig)
|
writeVersionsConfig(updatedConfig)
|
||||||
setManagingVersion(null)
|
|
||||||
setFadeOut(true)
|
|
||||||
setTimeout(() => setShowPopup(false), 200)
|
|
||||||
return updatedConfig
|
return updatedConfig
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user