add a couple alerts

This commit is contained in:
SpikeHD
2022-05-18 19:21:04 -07:00
parent 1050947dad
commit 017d6dcbe2

View File

@@ -74,7 +74,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
async playGame() {
const config = await getConfig()
if (!config.game_install_path) return
if (!config.game_install_path) return alert('Game path not set!')
// Connect to proxy
if (config.toggle_grasscutter) {
@@ -107,7 +107,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
async launchServer() {
const config = await getConfig()
if (!config.grasscutter_path) return
if (!config.grasscutter_path) return alert('Grasscutter not installed or set!')
let jarFolder = config.grasscutter_path