Fix: Use -G 0 option will not set QTWEBENGINE_CHROMIUM_FLAGS env

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2026-03-24 22:23:10 +08:00
parent f2b69ceb5e
commit 84d3ad518d

View File

@@ -247,9 +247,9 @@ int main(int argc, char *argv[])
<< "--enable-gpu-rasterization"
<< "--enable-native-gpu-memory-buffers"
<< "--enable-accelerated-video-decode";
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
qDebug() << "Setting GPU to True.";
}
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
// 初始化 QtWebEngine 深色模式环境变量
WebEngineView::handleChromiumFlags();