Browse Source

(Mail) Add some preferences for the download manager

main
Matt A. Tobin 9 months ago committed by Roy Tam
parent
commit
9dafc3d82a
  1. 51
      mail/components/preferences/applications.xul
  2. 17
      mail/locales/en-US/chrome/messenger/preferences/applications.dtd

51
mail/components/preferences/applications.xul

@ -27,6 +27,18 @@
]]>
</script>
<preferences id="commDownloadPreferences">
<preference id="browser.download.manager.behavior"
name="browser.download.manager.behavior"
type="int"/>
<preference id="browser.download.manager.focusWhenStarting"
name="browser.download.manager.focusWhenStarting"
type="bool"/>
<preference id="browser.download.manager.retention"
name="browser.download.manager.retention"
type="int"/>
</preferences>
<preferences id="applicationsPreferences">
<preference id="mail.preferences.applications.selectedTabIndex"
name="mail.preferences.applications.selectedTabIndex" type="int"/>
@ -131,7 +143,28 @@
<script type="application/javascript"
src="chrome://messenger/content/preferences/downloads.js"/>
<vbox>
<hbox align="center">
<label value="&downloadBehavior.label;"
control="downloadBehavior"/>
<menulist id="downloadBehavior"
preference="browser.download.manager.behavior">
<menupopup>
<menuitem value="0" label="&openDM.label;"/>
<menuitem value="1" label="&openProgressDialog.label;"/>
<menuitem value="2" label="&doNothing.label;"/>
</menupopup>
</menulist>
</hbox>
<hbox>
<checkbox id="focusWhenStarting"
class="indent"
preference="browser.download.manager.focusWhenStarting"
label="&flashWhenOpen.label;"
accesskey="&flashWhenOpen.accesskey;"/>
</hbox>
</vbox>
<separator class="thin"/>
<vbox align="start">
<radiogroup id="saveWhere" flex="1"
preference="browser.download.useDownloadDir"
@ -167,6 +200,22 @@
</hbox>
</radiogroup>
</vbox>
<separator class="thin"/>
<vbox>
<hbox align="center">
<label value="&removeEntries.label;"
accesskey="&removeEntries.accesskey;"
control="downloadHistory"/>
<menulist id="downloadHistory"
preference="browser.download.manager.retention">
<menupopup>
<menuitem value="0" label="&whenCompleted.label;"/>
<menuitem value="1" label="&whenQuittingApp.label;"/>
<menuitem value="2" label="&neverRemove.label;"/>
</menupopup>
</menulist>
</hbox>
</vbox>
</tabpanel>
<tabpanel orient="vertical">

17
mail/locales/en-US/chrome/messenger/preferences/applications.dtd

@ -36,3 +36,20 @@
<!ENTITY enableCloudFileAccountOffer.label "Offer to share for files larger than">
<!ENTITY enableCloudFileAccountOffer.mb "MB">
<!ENTITY downloadBehavior.label "When saving a file">
<!ENTITY doNothing.label "Don't open anything">
<!ENTITY doNothing.accesskey "D">
<!ENTITY openProgressDialog.label "Open a progress dialog">
<!ENTITY openProgressDialog.accesskey "O">
<!ENTITY openDM.label "Open the saved files window">
<!ENTITY openDM.accesskey "m">
<!ENTITY flashWhenOpen.label "Just flash the saved files window if it is already open">
<!ENTITY flashWhenOpen.accesskey "f">
<!ENTITY downloadHistory.label "Saved file history">
<!ENTITY removeEntries.label "Remove saved file entries">
<!ENTITY removeEntries.accesskey "R">
<!ENTITY whenCompleted.label "When they have completed">
<!ENTITY whenQuittingApp.label "When quitting &brandShortName;">
<!ENTITY neverRemove.label "Never">
Loading…
Cancel
Save