Make reinstall button change popup to downloads popup stead

This commit is contained in:
2026-02-09 20:08:03 -07:00
parent a76e81789b
commit c91303d194

View File

@@ -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
}) })