mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 22:06:17 +00:00
Merge branch 'main' into feat/HYD-819
This commit is contained in:
@@ -18,8 +18,6 @@ import {
|
||||
} from "@main/services";
|
||||
|
||||
export const loadState = async () => {
|
||||
SystemPath.checkIfPathsAreAvailable();
|
||||
|
||||
const userPreferences = await db.get<string, UserPreferences | null>(
|
||||
levelKeys.userPreferences,
|
||||
{
|
||||
@@ -79,4 +77,6 @@ export const loadState = async () => {
|
||||
startMainLoop();
|
||||
|
||||
CommonRedistManager.downloadCommonRedist();
|
||||
|
||||
SystemPath.checkIfPathsAreAvailable();
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ export const uploadGamesBatch = async () => {
|
||||
);
|
||||
});
|
||||
|
||||
const gamesChunks = chunk(games, 50);
|
||||
const gamesChunks = chunk(games, 30);
|
||||
|
||||
for (const chunk of gamesChunks) {
|
||||
await HydraApi.post(
|
||||
|
||||
@@ -38,7 +38,7 @@ export class SystemPath {
|
||||
try {
|
||||
return app.getPath(pathName);
|
||||
} catch (error) {
|
||||
logger.error(`Error getting path: ${error}`);
|
||||
console.error(`Error getting path: ${error}`);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user