IDEMPIERE-195 Expand menu automatically - minor improvement to use cached version of the current user
This commit is contained in:
parent
8bc3e8895c
commit
b70cd913b4
|
|
@ -197,7 +197,7 @@ public final class AMenu extends CFrame
|
||||||
infoUpdaterThread.start();
|
infoUpdaterThread.start();
|
||||||
|
|
||||||
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
||||||
if (MRole.getDefault().isMenuAutoExpand() || new MUser(m_ctx, m_AD_User_ID, null).isMenuAutoExpand())
|
if (MRole.getDefault().isMenuAutoExpand() || MUser.get(m_ctx).isMenuAutoExpand())
|
||||||
treePanel.expandTree(true);
|
treePanel.expandTree(true);
|
||||||
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ public final class VTreePanel extends CPanel
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -6798614427038652192L;
|
private static final long serialVersionUID = -7188402231414573844L;
|
||||||
|
|
||||||
private static final String PREFIX_DOCUMENT_SEARCH = "/";
|
private static final String PREFIX_DOCUMENT_SEARCH = "/";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ public class MenuPanel extends Panel implements EventListener
|
||||||
pnlSearch.initialise();
|
pnlSearch.initialise();
|
||||||
|
|
||||||
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
||||||
if (MRole.getDefault().isMenuAutoExpand() || new MUser(ctx, Env.getAD_User_ID(ctx), null).isMenuAutoExpand())
|
if (MRole.getDefault().isMenuAutoExpand() || MUser.get(ctx).isMenuAutoExpand())
|
||||||
expandAll();
|
expandAll();
|
||||||
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
// Auto Expand Tree - nmicoud IDEMPIERE 195
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue