mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 733297 - When saving a video from Page Info, the file picker title is 'Save Image'. r=jaws
This commit is contained in:
parent
510dbca21f
commit
a333ee6c73
@ -780,8 +780,16 @@ function saveMedia()
|
||||
var item = getSelectedImage(tree);
|
||||
var url = gImageView.data[tree.currentIndex][COL_IMAGE_ADDRESS];
|
||||
|
||||
if (url)
|
||||
saveURL(url, null, "SaveImageTitle", false, false, makeURI(item.baseURI));
|
||||
if (url) {
|
||||
var titleKey = "SaveImageTitle";
|
||||
|
||||
if (item instanceof HTMLVideoElement)
|
||||
titleKey = "SaveVideoTitle";
|
||||
else if (item instanceof HTMLAudioElement)
|
||||
titleKey = "SaveAudioTitle";
|
||||
|
||||
saveURL(url, null, titleKey, false, false, makeURI(item.baseURI));
|
||||
}
|
||||
}
|
||||
else {
|
||||
var odir = selectSaveFolder();
|
||||
|
Loading…
Reference in New Issue
Block a user