diff options
-rw-r--r-- | src/main.cpp | 12 |
1 files 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( |