From 3e96cc6bbade480376ab9d554318a1233578d323 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Sat, 5 Mar 2022 23:52:12 +0530 Subject: fix qcf --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7f94a3d..0a069fc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,12 @@ int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); } +#ifdef QT_DEBUG + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--remote-debugging-port=9421"); +#endif + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-logging --single-process"); + + QApplication app(argc, argv); app.setWindowIcon(QIcon(":/icons/app/icon-256.png")); @@ -40,12 +46,6 @@ int main(int argc, char *argv[]) { } #endif - qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--single-process"); -#ifdef QT_DEBUG - qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--remote-debugging-port=9421"); -#endif - qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-logging"); - QWebEngineSettings::defaultSettings()->setAttribute( QWebEngineSettings::PluginsEnabled, true); QWebEngineSettings::defaultSettings()->setAttribute( -- cgit v1.2.3