Bug 1732231 - Prevent updating the folderTree.json if the folder pane is empty or not initialized. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126591 --HG-- extra : amend_source : dc6b13750a1b1b3efaf0fafbd5d9153c065be749
This commit is contained in:
Родитель
e0550c4477
Коммит
ed466dd124
|
@ -220,8 +220,10 @@ var gFolderTreeView = {
|
|||
// Remove our listener
|
||||
MailServices.mailSession.RemoveFolderListener(this);
|
||||
|
||||
if (filename) {
|
||||
// Write out our json file...
|
||||
// Update the JSON file only if we have a file, the folder tree was inited
|
||||
// and we have at least one available folder in order to avoid overriding
|
||||
// existing data in case the UI is broken on startup.
|
||||
if (filename && this.isInited && this.rowCount) {
|
||||
let data = {
|
||||
open: this._persistOpenMap,
|
||||
colors: this._persistColorMap,
|
||||
|
|
Загрузка…
Ссылка в новой задаче