mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Move settings check after wavesrv startup (#854)
This commit is contained in:
parent
ce3ce7e6fd
commit
d5abf7ea95
@ -852,11 +852,7 @@ async function appMain() {
|
|||||||
fs.mkdirSync(waveHomeDir);
|
fs.mkdirSync(waveHomeDir);
|
||||||
}
|
}
|
||||||
makeAppMenu();
|
makeAppMenu();
|
||||||
const fullConfig = await services.FileService.GetFullConfig();
|
|
||||||
const settings = fullConfig.settings;
|
|
||||||
if (settings?.["window:disablehardwareacceleration"]) {
|
|
||||||
electronApp.disableHardwareAcceleration();
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
await runWaveSrv();
|
await runWaveSrv();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -864,6 +860,14 @@ async function appMain() {
|
|||||||
}
|
}
|
||||||
const ready = await waveSrvReady;
|
const ready = await waveSrvReady;
|
||||||
console.log("wavesrv ready signal received", ready, Date.now() - startTs, "ms");
|
console.log("wavesrv ready signal received", ready, Date.now() - startTs, "ms");
|
||||||
|
|
||||||
|
const fullConfig = await services.FileService.GetFullConfig();
|
||||||
|
const settings = fullConfig.settings;
|
||||||
|
if (settings?.["window:disablehardwareacceleration"]) {
|
||||||
|
console.log("disabling hardware acceleration");
|
||||||
|
electronApp.disableHardwareAcceleration();
|
||||||
|
}
|
||||||
|
|
||||||
await electronApp.whenReady();
|
await electronApp.whenReady();
|
||||||
configureAuthKeyRequestInjection(electron.session.defaultSession);
|
configureAuthKeyRequestInjection(electron.session.defaultSession);
|
||||||
await relaunchBrowserWindows();
|
await relaunchBrowserWindows();
|
||||||
|
Loading…
Reference in New Issue
Block a user