diff --git a/src/ui/components/common/DirInput.css b/src/ui/components/common/DirInput.css index b15c927..309d895 100644 --- a/src/ui/components/common/DirInput.css +++ b/src/ui/components/common/DirInput.css @@ -1,5 +1,5 @@ .DirInput { - display:inline-flex; + display: inline-flex; flex-direction: row; align-items: center; justify-content: center; diff --git a/src/ui/components/menu/Downloads.tsx b/src/ui/components/menu/Downloads.tsx index 13a8b8c..d83ace4 100644 --- a/src/ui/components/menu/Downloads.tsx +++ b/src/ui/components/menu/Downloads.tsx @@ -19,7 +19,8 @@ const DEV_REPO_DOWNLOAD = 'https://github.com/Grasscutters/Grasscutter/archive/r const STABLE_DOWNLOAD = 'https://nightly.link/Grasscutters/Grasscutter/workflows/build/stable/Grasscutter.zip' const DEV_DOWNLOAD = 'https://nightly.link/Grasscutters/Grasscutter/workflows/build/development/Grasscutter.zip' const RESOURCES_DOWNLOAD = 'https://gitlab.com/YuukiPS/GC-Resources/-/archive/3.5/GC-Resources-3.5.zip' // Use Yuuki res as grasscutter crepe res are broken -const MIGOTO_DOWNLOAD = 'https://github.com/SilentNightSound/GI-Model-Importer/releases/download/V6.0/3dmigoto-GIMI-for-playing-mods.zip' +const MIGOTO_DOWNLOAD = + 'https://github.com/SilentNightSound/GI-Model-Importer/releases/download/V6.0/3dmigoto-GIMI-for-playing-mods.zip' interface IProps { closeFn: () => void @@ -125,8 +126,7 @@ export default class Downloads extends React.Component { } async getCultivationFolder() { - - const folderPath = await dataDir() + 'cultivation' + const folderPath = (await dataDir()) + 'cultivation' return folderPath } @@ -220,9 +220,9 @@ export default class Downloads extends React.Component { } async downloadMigoto() { - const folder = await this.getCultivationFolder() + '\\3dmigoto' + const folder = (await this.getCultivationFolder()) + '\\3dmigoto' await invoke('dir_create', { - path: folder + path: folder, }) this.props.downloadManager.addDownload(MIGOTO_DOWNLOAD, folder + '\\GIMI-3dmigoto.zip', async () => { @@ -382,11 +382,7 @@ export default class Downloads extends React.Component {
- +
diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index cfcd829..25168de 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -264,9 +264,7 @@ export default class Options extends React.Component { await server.toggleEncryption(folderPath + '/config.json') this.setState({ - encryption: ( - (await server.encryptionEnabled(folderPath + '/config.json')) - ), + encryption: await server.encryptionEnabled(folderPath + '/config.json'), }) // Check if Grasscutter is running, and restart if so to apply changes @@ -399,11 +397,7 @@ export default class Options extends React.Component { diff --git a/src/ui/components/mods/ModTile.tsx b/src/ui/components/mods/ModTile.tsx index d918c9d..41b0122 100644 --- a/src/ui/components/mods/ModTile.tsx +++ b/src/ui/components/mods/ModTile.tsx @@ -53,7 +53,7 @@ export class ModTile extends React.Component { // Partial mod this.setState({ modEnabled: await modIsEnabled(this.props.mod.name), - horny + horny, }) return @@ -61,7 +61,7 @@ export class ModTile extends React.Component { this.setState({ modEnabled: await modIsEnabled(String(this.props.mod.id)), - horny + horny, }) } @@ -73,7 +73,7 @@ export class ModTile extends React.Component { this.setState( { modEnabled: !this.state.modEnabled, - horny: !this.state.horny + horny: !this.state.horny, }, () => { if (this.state.modEnabled) { diff --git a/src/utils/download.ts b/src/utils/download.ts index 496e6b6..1c47ff4 100644 --- a/src/utils/download.ts +++ b/src/utils/download.ts @@ -117,7 +117,7 @@ export default class DownloadHandler { downloadingRepo() { return this.downloads.some((d) => d.path.includes('grasscutter_repo.zip')) } - + downloadingMigoto() { return this.downloads.some((d) => d.path.includes('3dmigoto')) }