mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
Run prettier
I forgor before
This commit is contained in:
@@ -193,13 +193,13 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (gameExists)
|
if (gameExists)
|
||||||
if (config.un_elevated) {
|
if (config.un_elevated) {
|
||||||
await invoke('run_un_elevated', {
|
await invoke('run_un_elevated', {
|
||||||
path: config.game_install_path,
|
path: config.game_install_path,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
await invoke('run_program_relative', { path: exe || config.game_install_path })
|
await invoke('run_program_relative', { path: exe || config.game_install_path })
|
||||||
}
|
}
|
||||||
else alert('Game not found! At: ' + (exe || config.game_install_path))
|
else alert('Game not found! At: ' + (exe || config.game_install_path))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -101,25 +101,25 @@ export default class DownloadHandler {
|
|||||||
|
|
||||||
downloadingJar() {
|
downloadingJar() {
|
||||||
// Kinda hacky but it works
|
// Kinda hacky but it works
|
||||||
return this.downloads.some((d) => d.path.includes('grasscutter.zip') && (d.status != ('finished' || 'error')))
|
return this.downloads.some((d) => d.path.includes('grasscutter.zip') && d.status != ('finished' || 'error'))
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadingFullBuild() {
|
downloadingFullBuild() {
|
||||||
// Kinda hacky but it works
|
// Kinda hacky but it works
|
||||||
return this.downloads.some((d) => d.path.includes('GrasscutterCulti') && (d.status != ('finished' || 'error')))
|
return this.downloads.some((d) => d.path.includes('GrasscutterCulti') && d.status != ('finished' || 'error'))
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadingResources() {
|
downloadingResources() {
|
||||||
// Kinda hacky but it works
|
// Kinda hacky but it works
|
||||||
return this.downloads.some((d) => d.path.includes('resources') && (d.status != ('finished' || 'error')))
|
return this.downloads.some((d) => d.path.includes('resources') && d.status != ('finished' || 'error'))
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadingRepo() {
|
downloadingRepo() {
|
||||||
return this.downloads.some((d) => d.path.includes('grasscutter_repo.zip') && (d.status != ('finished' || 'error')))
|
return this.downloads.some((d) => d.path.includes('grasscutter_repo.zip') && d.status != ('finished' || 'error'))
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadingMigoto() {
|
downloadingMigoto() {
|
||||||
return this.downloads.some((d) => d.path.includes('3dmigoto') && (d.status != ('finished' || 'error')))
|
return this.downloads.some((d) => d.path.includes('3dmigoto') && d.status != ('finished' || 'error'))
|
||||||
}
|
}
|
||||||
|
|
||||||
addDownload(url: string, path: string, onFinish?: () => void) {
|
addDownload(url: string, path: string, onFinish?: () => void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user