Automation

- MongoDB tied to Grasscutter rather than game
- Grasscutter restarts when changing encryption if it is running
- AIO link updates without needing manual edits
This commit is contained in:
Thoronium
2023-04-02 21:15:25 -06:00
parent 5d6bd72083
commit e834022ca7
8 changed files with 151 additions and 7 deletions

View File

@@ -267,7 +267,11 @@ export default class Options extends React.Component<IProps, IState> {
),
})
alert('Restart Grasscutter to apply encryption settings! If it is already closed, just start as normal.')
// Check if Grasscutter is running, and restart if so to apply changes
if (await invoke('is_grasscutter_running')) {
alert('Automatically restarting Grasscutter to apply encryption changes!')
await invoke('restart_grasscutter')
}
}
async removeRSA() {