Mail: Fix pressing delete without selected mail deletes first mail when mail is not the open app when you log in

This commit is contained in:
nathan 2022-04-13 16:41:20 -06:00
parent 748e2ee70e
commit 6bd5388131

View File

@ -209,7 +209,8 @@ app.classes.mail = AppJS.extend(
this.mail_isMainWindow = true;
// Stop list from focussing next row on keypress
egw_getObjectManager('nm').flags = egwSetBit(egw_getObjectManager('nm').flags, EGW_AO_FLAG_DEFAULT_FOCUS, false);
let aom = egw_getObjectManager('mail').getObjectById('nm');
aom.flags = egwSetBit(aom.flags, EGW_AO_FLAG_DEFAULT_FOCUS, false);
// Set preview pane state
this.mail_disablePreviewArea(!this.getPreviewPaneState());