mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: adding alphabetical sort to steam games
This commit is contained in:
parent
0ccaed8d55
commit
5b864367e8
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,8 @@ import { In } from "typeorm";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { RealDebridClient } from "./services/real-debrid";
|
import { RealDebridClient } from "./services/real-debrid";
|
||||||
|
import { orderBy } from "lodash-es";
|
||||||
|
import { SteamGame } from "@types";
|
||||||
|
|
||||||
startProcessWatcher();
|
startProcessWatcher();
|
||||||
|
|
||||||
|
@ -78,10 +80,10 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
||||||
|
|
||||||
const steamGames = JSON.parse(
|
const steamGames = JSON.parse(
|
||||||
fs.readFileSync(path.join(seedsPath, "steam-games.json"), "utf-8")
|
fs.readFileSync(path.join(seedsPath, "steam-games.json"), "utf-8")
|
||||||
);
|
) as SteamGame[];
|
||||||
|
|
||||||
stateManager.setValue("repacks", repacks);
|
stateManager.setValue("repacks", repacks);
|
||||||
stateManager.setValue("steamGames", steamGames);
|
stateManager.setValue("steamGames", orderBy(steamGames, ["name"], "asc"));
|
||||||
|
|
||||||
import("./events");
|
import("./events");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue