mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
[MailNews] Allow ordering of accounts to respect mail.accountmanager.accounts
This commit is contained in:
parent
078fea47aa
commit
8d9b34816c
2 changed files with 9 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ this.EXPORTED_SYMBOLS = ["getFolderProperties", "getSpecialFolderString",
|
|||
|
||||
Components.utils.import("resource:///modules/mailServices.js");
|
||||
Components.utils.import("resource:///modules/iteratorUtils.jsm");
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
/**
|
||||
* Returns a string representation of a folder's "special" type.
|
||||
|
|
@ -169,8 +170,14 @@ function allAccountsSorted(aExcludeIMAccounts) {
|
|||
return a.incomingServer.type != "im";
|
||||
});
|
||||
}
|
||||
|
||||
// Sort the accounts else will respect the order in mail.accountmanager.accounts
|
||||
if (Services.prefs.getBoolPref("mail.accountmanager.accounts.ordered", true)) {
|
||||
accountList = accountList.sort(compareAccounts);
|
||||
}
|
||||
|
||||
return accountList.sort(compareAccounts);
|
||||
|
||||
return accountList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue