mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-20 17:01:47 +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,20 +103,14 @@ 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) => {
|
||||
module.default(this.launcher).then(() => {
|
||||
this.update().then(() => {
|
||||
this.launchButton.style['display'] = 'block';
|
||||
this.integrityButton.style['display'] = 'block';
|
||||
this.settingsButton.style['display'] = 'block';
|
||||
});
|
||||
import('./states/CheckIntegrity').then((module) => {
|
||||
module.default(this.launcher).then(() => {
|
||||
this.update().then(() => {
|
||||
this.launchButton.style['display'] = 'block';
|
||||
this.settingsButton.style['display'] = 'block';
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.update().then(async () => {
|
||||
|
|
Loading…
Reference in a new issue