mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: added the @globals back and removed some merge leftovers
This commit is contained in:
parent
c8fe984171
commit
6d36db5446
8 changed files with 535 additions and 367 deletions
|
@ -10,17 +10,17 @@ export enum GameStatus {
|
|||
}
|
||||
|
||||
export namespace GameStatus {
|
||||
export const isDownloading = (status: GameStatus | "") =>
|
||||
export const isDownloading = (status: GameStatus | null) =>
|
||||
status === GameStatus.Downloading ||
|
||||
status === GameStatus.DownloadingMetadata ||
|
||||
status === GameStatus.CheckingFiles;
|
||||
|
||||
export const isVerifying = (status: GameStatus | "") =>
|
||||
export const isVerifying = (status: GameStatus | null) =>
|
||||
GameStatus.DownloadingMetadata == status ||
|
||||
GameStatus.CheckingFiles == status ||
|
||||
GameStatus.Decompressing == status;
|
||||
|
||||
export const isReady = (status: GameStatus | "") =>
|
||||
export const isReady = (status: GameStatus | null) =>
|
||||
status === GameStatus.Finished ||
|
||||
status === GameStatus.Seeding;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue