mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Notify on encryption change
This commit is contained in:
@@ -264,6 +264,8 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
(await server.encryptionEnabled(folderPath + '/config.json')) ? 'options.enabled' : 'options.disabled'
|
(await server.encryptionEnabled(folderPath + '/config.json')) ? 'options.enabled' : 'options.disabled'
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
alert('Restart Grasscutter to apply encryption settings! If it is already closed, just start as normal.')
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeRSA() {
|
async removeRSA() {
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import { invoke } from '@tauri-apps/api'
|
import { invoke } from '@tauri-apps/api'
|
||||||
import { dataDir } from '@tauri-apps/api/path'
|
import { dataDir } from '@tauri-apps/api/path'
|
||||||
import { listen } from '@tauri-apps/api/event'
|
|
||||||
import DownloadHandler from './download'
|
|
||||||
import { getGameFolder } from './game'
|
import { getGameFolder } from './game'
|
||||||
|
|
||||||
const downloadHandler = new DownloadHandler()
|
|
||||||
|
|
||||||
export async function patchGame() {
|
export async function patchGame() {
|
||||||
// Do we have a patch already?
|
// Do we have a patch already?
|
||||||
const patchedExists = await invoke('dir_exists', {
|
const patchedExists = await invoke('dir_exists', {
|
||||||
|
|||||||
Reference in New Issue
Block a user