From 63f6323185ab1dbbc9a86cfe25a7793b0f1ad1c8 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Wed, 2 Oct 2024 15:59:06 +0300 Subject: [PATCH] fix: Remove forced OpenGl context sharing This is freezing the app when initialising the webengineview on linux with qt 5.15.8 --- src/nim_status_client.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index 22882382ce..974b3b8ac6 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -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