Bug 1548828 - Update priority button when compose window loads. r=darktrojan a=jorgk
authorJorg K <jorgk@jorgk.com>
Sun, 12 May 2019 21:35:25 +0200
changeset 32199 b07a7d287e54f3a17935f1d885474ea62b12cfa2
parent 32198 0ba26e8ccd61fc0092d36f412cd1be0c0baf362f
child 32200 68e64723c271f050aa30a38626d5568b37edb55e
push id190
push usermozilla@jorgk.com
push dateSun, 12 May 2019 19:49:38 +0000
treeherdercomm-esr60@29e8a0eb1dcb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdarktrojan, jorgk
bugs1548828
Bug 1548828 - Update priority button when compose window loads. r=darktrojan a=jorgk
mail/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3013,16 +3013,21 @@ function ComposeStartup(aParams)
   // finally, see if we need to auto open the address sidebar.
   var sideBarBox = document.getElementById('sidebar-box');
   if (sideBarBox.getAttribute("sidebarVisible") == "true")
   {
     // if we aren't supposed to have the side bar hidden, make sure it is visible
     if (document.getElementById("sidebar").getAttribute("src") == "")
       setTimeout(toggleAddressPicker, 0);   // do this on a delay so we don't hurt perf. on bringing up a new compose window
   }
+
+  // Update the priority button.
+  if (gMsgCompose.compFields.priority)
+    updatePriorityToolbarButton(gMsgCompose.compFields.priority);
+
   gAutoSaveInterval = getPref("mail.compose.autosave") ?
     getPref("mail.compose.autosaveinterval") * 60000 : 0;
 
   if (gAutoSaveInterval)
     gAutoSaveTimeout = setTimeout(AutoSave, gAutoSaveInterval);
 
   gAutoSaveKickedIn = false;
 }