Skip to content

Commit

Permalink
chore: corrected params
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Oct 7, 2024
1 parent 1850717 commit 500e219
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/lib/controllers/AppController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>
*/
import * as fs from "@tauri-apps/plugin-fs";
import { GridTypes, type ChangedPath, type LogoPinPositions, type SGDBGame, type SGDBImage } from "@types";
import { SettingsManager, restartApp } from "@utils";
import { createTippy } from "svelte-tippy";
Expand Down Expand Up @@ -451,14 +450,7 @@ export class AppController {

await AppController.saveChanges();

const gridsDir = await RustInterop.getGridsDirectory(get(activeUserId).toString());
const libraryCacheDir = await RustInterop.getLibraryCacheDirectory();
const [ gridDirContents, libraryCacheContents ] = await Promise.all([
fs.readDir(gridsDir),
fs.readDir(libraryCacheDir),
]);

const filteredCache = await SteamController.getCacheData(get(nonSteamGames), gridsDir, gridDirContents, libraryCacheDir, libraryCacheContents);
const filteredCache = await SteamController.getCacheData(get(nonSteamGames));
originalAppLibraryCache.set(filteredCache);
appLibraryCache.set(filteredCache);
} else {
Expand Down

0 comments on commit 500e219

Please sign in to comment.