mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
[MailNews] Allow setting "Local Folders" as always the first displayed account
This commit is contained in:
parent
8d9b34816c
commit
b72d30186a
2 changed files with 5 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ function allAccountsSorted(aExcludeIMAccounts) {
|
|||
accountList = accountList.sort(compareAccounts);
|
||||
}
|
||||
|
||||
// Set "Local Folders" as always the first displayed account
|
||||
if (Services.prefs.getBoolPref("mail.accountmanager.localfolderfirst", false)) {
|
||||
accountList.unshift(accountList.splice(accountList.findIndex(item => item.key === "account1"), 1)[0]);
|
||||
}
|
||||
|
||||
return accountList;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue