mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 16:47:29 +09:00
Issue #991 Part 7: Toolkit Components
This commit is contained in:
parent
c54c6d3bd2
commit
e309515e66
18 changed files with 55 additions and 204 deletions
|
|
@ -65,14 +65,7 @@ function initDialog()
|
|||
// ---------------------------------------------------
|
||||
function isListOfPrinterFeaturesAvailable()
|
||||
{
|
||||
var has_printerfeatures = false;
|
||||
|
||||
try {
|
||||
has_printerfeatures = gPrefs.getBoolPref("print.tmp.printerfeatures." + gPrintSettings.printerName + ".has_special_printerfeatures");
|
||||
} catch (ex) {
|
||||
}
|
||||
|
||||
return has_printerfeatures;
|
||||
return gPrefs.getBoolPref("print.tmp.printerfeatures." + gPrintSettings.printerName + ".has_special_printerfeatures", false);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -79,15 +79,7 @@ function stripTrailingWhitespace(element)
|
|||
// ---------------------------------------------------
|
||||
function getPrinterDescription(printerName)
|
||||
{
|
||||
var s = "";
|
||||
|
||||
try {
|
||||
/* This may not work with non-ASCII test (see bug 235763 comment #16) */
|
||||
s = gPrefs.getCharPref("print.printer_" + printerName + ".printer_description")
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
return s;
|
||||
return gPrefs.getCharPref("print.printer_" + printerName + ".printer_description", "")
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -33,14 +33,7 @@ function checkDouble(element, maxVal)
|
|||
// ---------------------------------------------------
|
||||
function isListOfPrinterFeaturesAvailable()
|
||||
{
|
||||
var has_printerfeatures = false;
|
||||
|
||||
try {
|
||||
has_printerfeatures = gPrefs.getBoolPref("print.tmp.printerfeatures." + gPrintSettings.printerName + ".has_special_printerfeatures");
|
||||
} catch (ex) {
|
||||
}
|
||||
|
||||
return has_printerfeatures;
|
||||
return gPrefs.getBoolPref("print.tmp.printerfeatures." + gPrintSettings.printerName + ".has_special_printerfeatures", false);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue