mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 489994 - Downloads list should honor always remember helper application, r=mconnor
This commit is contained in:
parent
1515ba9ac8
commit
1986c2c297
@ -323,6 +323,15 @@ function openDownload(aDownload)
|
||||
}
|
||||
}
|
||||
try {
|
||||
try {
|
||||
let download = gDownloadManager.getDownload(aDownload.getAttribute("dlid"));
|
||||
let mimeInfo = download.MIMEInfo;
|
||||
if (mimeInfo.preferredAction == mimeInfo.useHelperApp) {
|
||||
mimeInfo.launchWithFile(f);
|
||||
return;
|
||||
}
|
||||
} catch (ex) {
|
||||
}
|
||||
f.launch();
|
||||
} catch (ex) {
|
||||
// if launch fails, try sending it through the system's external
|
||||
|
Loading…
Reference in New Issue
Block a user