Skip to content

Commit

Permalink
feat(browser): enable PDF support
Browse files Browse the repository at this point in the history
Fixes #1261.
  • Loading branch information
trollixx committed Oct 6, 2024
1 parent 55b752a commit 48289b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/browser/webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ WebView::WebView(QWidget *parent)
setPage(new WebPage(this));
setZoomLevel(defaultZoomLevel());

// Enable plugins for PDF support.
settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);

settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, false);

QApplication::instance()->installEventFilter(this);
Expand Down

0 comments on commit 48289b9

Please sign in to comment.