desktop(DOtherSide): Set env var before creating gui app (#10891)
This commit is contained in:
parent
278654f694
commit
088dd76257
|
@ -116,10 +116,6 @@ proc mainProc() =
|
||||||
installSelfSignedCertificate(imageCert)
|
installSelfSignedCertificate(imageCert)
|
||||||
|
|
||||||
let app = newQGuiApplication()
|
let app = newQGuiApplication()
|
||||||
# NOTE: https://github.com/status-im/status-desktop/issues/6930
|
|
||||||
# We increase js stack size to prevent "Maximum call stack size exceeded" on UI loading.
|
|
||||||
os.putEnv("QV4_JS_MAX_STACK_SIZE", "10485760")
|
|
||||||
os.putEnv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1")
|
|
||||||
|
|
||||||
let singleInstance = newSingleInstance($toMD5(DATADIR), openUri)
|
let singleInstance = newSingleInstance($toMD5(DATADIR), openUri)
|
||||||
let urlSchemeEvent = newStatusUrlSchemeEventObject()
|
let urlSchemeEvent = newStatusUrlSchemeEventObject()
|
||||||
|
|
|
@ -232,6 +232,10 @@ void dos_qguiapplication_create()
|
||||||
static char *argv[] = {toCharPtr(QStringLiteral("Status"))};
|
static char *argv[] = {toCharPtr(QStringLiteral("Status"))};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// NOTE: https://github.com/status-im/status-desktop/issues/6930
|
||||||
|
// We increase js stack size to prevent "Maximum call stack size exceeded" on UI loading.
|
||||||
|
qputenv("QV4_JS_MAX_STACK_SIZE", "10485760");
|
||||||
|
qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1");
|
||||||
qInstallMessageHandler(myMessageOutput);
|
qInstallMessageHandler(myMessageOutput);
|
||||||
|
|
||||||
new QGuiApplication(argc, argv);
|
new QGuiApplication(argc, argv);
|
||||||
|
|
Loading…
Reference in New Issue