fix: Remove forced OpenGl context sharing

This is freezing the app when initialising the webengineview on linux with qt 5.15.8
This commit is contained in:
Alex Jbanca 2024-10-02 15:59:06 +03:00 committed by Alex Jbanca
parent 11f1e1541b
commit 63f6323185
1 changed files with 2 additions and 4 deletions

View File

@ -160,9 +160,10 @@ proc mainProc() =
let fleetConfig = readFile(joinPath(getAppDir(), fleetsPath))
let statusFoundation = newStatusFoundation(fleetConfig)
let uiScaleFilePath = joinPath(DATADIR, "ui-scale")
# Required by the WalletConnectSDK view right after creating the QGuiApplication instance
initializeWebView()
enableHDPI(uiScaleFilePath)
tryEnableThreadedRenderer()
initializeOpenGL()
let imageCert = imageServerTLSCert()
installSelfSignedCertificate(imageCert)
@ -174,9 +175,6 @@ proc mainProc() =
if singletonInstance.localAppSettings.getLanguage() != DEFAULT_LAS_KEY_LANGUAGE:
singletonInstance.localAppSettings.setLanguage(DEFAULT_LAS_KEY_LANGUAGE)
# Required by the WalletConnectSDK view right after creating the QGuiApplication instance
initializeWebView()
let singleInstance = newSingleInstance($toMD5(DATADIR), openUri)
let urlSchemeEvent = newStatusUrlSchemeEventObject()
# init url manager before app controller