зеркало из https://github.com/mozilla/pjs.git
Download manager. Not part of build. a=asa
This commit is contained in:
Родитель
3b9f5878ca
Коммит
da320ea01b
|
@ -176,8 +176,20 @@ var downloadViewController = {
|
|||
file.launch();
|
||||
break;
|
||||
case "cmd_showinshell":
|
||||
var file = getFileForItem(selection[0]);
|
||||
file.reveal();
|
||||
var localFile = getFileForItem(selection[0]);
|
||||
|
||||
// on unix, open a browser window rooted at the parent
|
||||
if (navigator.platform.indexOf("Win") == -1 && navigator.platform.indexOf("Mac") == -1) {
|
||||
var file = localFile.QueryInterface(Components.interfaces.nsIFile);
|
||||
var parent = file.parent;
|
||||
if (parent) {
|
||||
const browserURL = "chrome://navigator/content/navigator.xul";
|
||||
window.openDialog(browserURL, "_blank", "chrome,all,dialog=no", parent.path);
|
||||
}
|
||||
}
|
||||
else {
|
||||
file.reveal();
|
||||
}
|
||||
break;
|
||||
case "cmd_pause":
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче