1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Enable "Reading from Canvas" by default

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-06-23 23:24:14 +02:00
parent 9da1243ca6
commit 6a6625c7fa
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 2 additions and 2 deletions

View File

@ -997,7 +997,7 @@ void MainApplication::loadSettings()
webSettings->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, settings.value(QSL("screenCaptureEnabled"), false).toBool()); webSettings->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, settings.value(QSL("screenCaptureEnabled"), false).toBool());
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 6, 0) #if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 6, 0)
webSettings->setAttribute(QWebEngineSettings::ReadingFromCanvasEnabled, settings.value(QSL("readingFromCanvasEnabled"), false).toBool()); webSettings->setAttribute(QWebEngineSettings::ReadingFromCanvasEnabled, settings.value(QSL("readingFromCanvasEnabled"), true).toBool());
#endif #endif
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 7, 0) #if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 7, 0)
webSettings->setAttribute(QWebEngineSettings::ForceDarkMode, settings.value(QSL("forceDarkMode"), false).toBool()); webSettings->setAttribute(QWebEngineSettings::ForceDarkMode, settings.value(QSL("forceDarkMode"), false).toBool());

View File

@ -298,7 +298,7 @@ Preferences::Preferences(BrowserWindow* window)
ui->screenCaptureEnabled->setChecked(settings.value(QSL("screenCaptureEnabled"), false).toBool()); ui->screenCaptureEnabled->setChecked(settings.value(QSL("screenCaptureEnabled"), false).toBool());
ui->hardwareAccel->setChecked(settings.value(QSL("hardwareAccel"), false).toBool()); ui->hardwareAccel->setChecked(settings.value(QSL("hardwareAccel"), false).toBool());
#if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 6, 0) #if QTWEBENGINECORE_VERSION >= QT_VERSION_CHECK(6, 6, 0)
ui->readingFromCanvasEnabled->setChecked(settings.value(QSL("readingFromCanvasEnabled"), false).toBool()); ui->readingFromCanvasEnabled->setChecked(settings.value(QSL("readingFromCanvasEnabled"), true).toBool());
#else #else
ui->readingFromCanvasEnabled->hide(); ui->readingFromCanvasEnabled->hide();
#endif #endif