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,20 +103,14 @@ export default class State
|
||||||
this.integrityButton.style['display'] = 'none';
|
this.integrityButton.style['display'] = 'none';
|
||||||
this.settingsButton.style['display'] = 'none';
|
this.settingsButton.style['display'] = 'none';
|
||||||
|
|
||||||
// We must specify this files here directly
|
import('./states/CheckIntegrity').then((module) => {
|
||||||
// because otherwise Vite will not bundle 'em
|
module.default(this.launcher).then(() => {
|
||||||
const integrityModule = import('./states/CheckIntegrity');
|
this.update().then(() => {
|
||||||
|
this.launchButton.style['display'] = 'block';
|
||||||
(this._state === 'game-launch-available' ? integrityModule : null!)
|
this.settingsButton.style['display'] = 'block';
|
||||||
.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';
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update().then(async () => {
|
this.update().then(async () => {
|
||||||
|
|
Loading…
Reference in a new issue