mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: ensure all events are loaded before create window
This commit is contained in:
parent
94a13991fa
commit
f62c3f9c37
2 changed files with 13 additions and 14 deletions
|
@ -9,6 +9,7 @@ import resources from "@locales";
|
|||
import { PythonRPC } from "./services/python-rpc";
|
||||
import { Aria2 } from "./services/aria2";
|
||||
import { db, levelKeys } from "./level";
|
||||
import { loadState } from "./main";
|
||||
|
||||
const { autoUpdater } = updater;
|
||||
|
||||
|
@ -57,7 +58,7 @@ app.whenReady().then(async () => {
|
|||
return net.fetch(url.pathToFileURL(decodeURI(filePath)).toString());
|
||||
});
|
||||
|
||||
await import("./main");
|
||||
await loadState();
|
||||
|
||||
const language = await db.get<string, string>(levelKeys.language, {
|
||||
valueEncoding: "utf-8",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue