mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -675,7 +675,11 @@ nsUnknownContentTypeDialog.prototype = {
|
|||
|
||||
// getPath:
|
||||
getPath: function (aFile) {
|
||||
#ifdef XP_MACOSX
|
||||
return aFile.leafName || aFile.path;
|
||||
#else
|
||||
return aFile.path;
|
||||
#endif
|
||||
},
|
||||
|
||||
// initAppAndSaveToDiskValues:
|
||||
|
|
@ -983,6 +987,12 @@ nsUnknownContentTypeDialog.prototype = {
|
|||
return file.getVersionInfoField("FileDescription");
|
||||
} catch (e) {}
|
||||
}
|
||||
#elifdef XP_MACOSX
|
||||
if (file instanceof Components.interfaces.nsILocalFileMac) {
|
||||
try {
|
||||
return file.bundleDisplayName;
|
||||
} catch (e) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
return file.leafName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue