External download manager should skip image viewer
This commit is contained in:
parent
c4791e4a9a
commit
57397ee229
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ namespace EDM {
|
|||
public bool download_requested (Midori.View view, WebKit.Download download) {
|
||||
if (download.get_data<void*> ("save-as-download") == null
|
||||
&& download.get_data<void*> ("open-download") == null
|
||||
&& download.get_data<void*> ("open-in-viewer") == null
|
||||
&& download.get_data<void*> ("cancel-download") == null) {
|
||||
var dlReq = new DownloadRequest ();
|
||||
dlReq.uri = download.get_uri ();
|
||||
|
|
Loading…
Reference in a new issue