delete zips after extraction and autoset jar file

This commit is contained in:
SpikeHD
2022-05-16 17:49:52 -07:00
parent f530ffdd2c
commit 3f9aa48bc2
4 changed files with 144 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ import DownloadList from './components/common/DownloadList'
import Downloads from './components/menu/Downloads'
import NewsSection from './components/news/NewsSection'
import RightBar from './components/RightBar'
import { setConfigOption } from '../utils/configuration'
interface IProps {
[key: string]: never;
@@ -41,6 +42,10 @@ class App extends React.Component<IProps, IState> {
listen('lang_error', (payload) => {
console.log(payload)
})
listen('jar_extracted', ({ payload }) => {
setConfigOption('grasscutter_path', payload)
})
}
render() {