mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
feat: migrating repacks to a worker
This commit is contained in:
parent
0722868c35
commit
3aa20aa7d9
@ -101,7 +101,7 @@ export function Sidebar() {
|
||||
};
|
||||
}, [isResizing]);
|
||||
|
||||
const getGameTitle = (game: Game) => {
|
||||
const getGameTitle = (game: Omit<Game, "repacks">) => {
|
||||
if (game.status === "paused") return t("paused", { title: game.title });
|
||||
|
||||
if (lastPacket?.game.id === game.id) {
|
||||
|
@ -61,7 +61,7 @@ export function Downloads() {
|
||||
updateLibrary();
|
||||
});
|
||||
|
||||
const getFinalDownloadSize = (game: Game) => {
|
||||
const getFinalDownloadSize = (game: Omit<Game, "repacks">) => {
|
||||
const isGameDownloading = lastPacket?.game.id === game.id;
|
||||
|
||||
if (game.fileSize) return formatBytes(game.fileSize);
|
||||
@ -72,7 +72,7 @@ export function Downloads() {
|
||||
return "N/A";
|
||||
};
|
||||
|
||||
const getGameInfo = (game: Game) => {
|
||||
const getGameInfo = (game: Omit<Game, "repacks">) => {
|
||||
const isGameDownloading = lastPacket?.game.id === game.id;
|
||||
const finalDownloadSize = getFinalDownloadSize(game);
|
||||
|
||||
@ -132,7 +132,7 @@ export function Downloads() {
|
||||
setShowDeleteModal(true);
|
||||
};
|
||||
|
||||
const getGameActions = (game: Game) => {
|
||||
const getGameActions = (game: Omit<Game, "repacks">) => {
|
||||
const isGameDownloading = lastPacket?.game.id === game.id;
|
||||
|
||||
const deleting = isGameDeleting(game.id);
|
||||
|
Loading…
Reference in New Issue
Block a user