mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 09:03:56 +02:00
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
0ad1f6c829
commit
73a6d9972c
@ -371,6 +371,8 @@ if (store.get("disableHardwareAcceleration") === true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.on("ready", async () => {
|
app.on("ready", async () => {
|
||||||
|
console.debug("Reached Electron ready state");
|
||||||
|
|
||||||
let asarPath: string;
|
let asarPath: string;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -460,6 +462,7 @@ app.on("ready", async () => {
|
|||||||
console.log("No update_base_url is defined: auto update is disabled");
|
console.log("No update_base_url is defined: auto update is disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.debug("Ensuring storage is ready");
|
||||||
await store.safeStorageReady();
|
await store.safeStorageReady();
|
||||||
|
|
||||||
// Load the previous window state with fallback to defaults
|
// Load the previous window state with fallback to defaults
|
||||||
@ -468,6 +471,7 @@ app.on("ready", async () => {
|
|||||||
defaultHeight: 768,
|
defaultHeight: 768,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.debug("Opening main window");
|
||||||
const preloadScript = path.normalize(`${__dirname}/preload.cjs`);
|
const preloadScript = path.normalize(`${__dirname}/preload.cjs`);
|
||||||
global.mainWindow = new BrowserWindow({
|
global.mainWindow = new BrowserWindow({
|
||||||
// https://www.electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
|
// https://www.electronjs.org/docs/faq#the-font-looks-blurry-what-is-this-and-what-can-i-do
|
||||||
|
@ -92,7 +92,10 @@ class Store extends ElectronStore<{
|
|||||||
if (this.has("safeStorage")) return;
|
if (this.has("safeStorage")) return;
|
||||||
console.info("Store migration: started");
|
console.info("Store migration: started");
|
||||||
if (!safeStorage.isEncryptionAvailable()) {
|
if (!safeStorage.isEncryptionAvailable()) {
|
||||||
console.error("Store migration: safeStorage is not available");
|
console.error(
|
||||||
|
"Store migration: safeStorage is not available with backend",
|
||||||
|
safeStorage.getSelectedStorageBackend(),
|
||||||
|
);
|
||||||
throw new Error("safeStorage is not available");
|
throw new Error("safeStorage is not available");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user