mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
delete zips after extraction and autoset jar file
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user