mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-23 03:49:41 +00:00
Remove unnecessary passing of args
This commit is contained in:
parent
5db28756d2
commit
680c6b04a4
@ -219,10 +219,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
} else {
|
||||
if (config.launch_args.length < 1) {
|
||||
// Run relative when there are no args
|
||||
await invoke('run_program_relative', {
|
||||
path: exe || config.game_install_path,
|
||||
args: config.launch_args,
|
||||
})
|
||||
await invoke('run_program_relative', { path: exe || config.game_install_path })
|
||||
} else {
|
||||
// Run directly when there are args
|
||||
await invoke('run_program', {
|
||||
|
Loading…
Reference in New Issue
Block a user