diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-13 20:06:58 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-13 21:06:23 +0530 |
| commit | 0d9aedc087f56a3da35b6abc8a0ee233c2d2483b (patch) | |
| tree | 533bb26e33358f601ac37eb12a897ba13d046667 /src/widgets/WebViewStack.hpp | |
| parent | bbe50215cbb9078ba457f93a5e90096e844c611a (diff) | |
| download | null-browser-0d9aedc087f56a3da35b6abc8a0ee233c2d2483b.tar.gz null-browser-0d9aedc087f56a3da35b6abc8a0ee233c2d2483b.zip | |
Add downloads_dir configuration + auto-accept download requests
Diffstat (limited to 'src/widgets/WebViewStack.hpp')
| -rw-r--r-- | src/widgets/WebViewStack.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/WebViewStack.hpp b/src/widgets/WebViewStack.hpp index 8f66c09..05362d6 100644 --- a/src/widgets/WebViewStack.hpp +++ b/src/widgets/WebViewStack.hpp @@ -57,6 +57,7 @@ protected: WebView *create_new_webview(const QUrl &url, bool focus = false); int32_t get_webview_index(WebViewId webview_id); WebView *get_webview(WebViewId webview_id); + void on_download_request(QWebEngineDownloadRequest *download); public slots: void open_url(const QUrl &url, OpenType open_type = OpenType::OpenUrl, WebViewId webview_id = 0); |
