mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
Change handling of Integrity button in State
This commit is contained in:
parent
4cd514457c
commit
6be07994cc
1 changed files with 6 additions and 12 deletions
|
@ -103,16 +103,10 @@ export default class State
|
|||
this.integrityButton.style['display'] = 'none';
|
||||
this.settingsButton.style['display'] = 'none';
|
||||
|
||||
// We must specify this files here directly
|
||||
// because otherwise Vite will not bundle 'em
|
||||
const integrityModule = import('./states/CheckIntegrity');
|
||||
|
||||
(this._state === 'game-launch-available' ? integrityModule : null!)
|
||||
.then((module) => {
|
||||
import('./states/CheckIntegrity').then((module) => {
|
||||
module.default(this.launcher).then(() => {
|
||||
this.update().then(() => {
|
||||
this.launchButton.style['display'] = 'block';
|
||||
this.integrityButton.style['display'] = 'block';
|
||||
this.settingsButton.style['display'] = 'block';
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue