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:
parent
9da1243ca6
commit
6a6625c7fa
|
@ -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());
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user