IDEMPIERE-5449 Performance: Avoid recount when clicking a process button (#1527)
* IDEMPIERE-5449 Performance: Avoid recount when clicking a process button * - remove unnecessary comment
This commit is contained in:
parent
7ffb18b8e2
commit
221384a1ce
|
@ -1326,8 +1326,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
|
||||
MPInstance instance = new MPInstance(ctx, pi.getAD_PInstance_ID(), "false");
|
||||
if (!instance.isRunAsJob()){
|
||||
// when run as job, don't expect see its effect when close parameter panel, so don't refresh
|
||||
if (!instance.isRunAsJob() && !dialog.isCancel()){
|
||||
// when run as job or canceled, don't expect see its effect when close parameter panel, so don't refresh
|
||||
onRefresh(true, false);
|
||||
}
|
||||
|
||||
|
@ -3731,13 +3731,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
Executions.schedule(getComponent().getDesktop(), e -> dialog.focus(), new Event("onPostShowProcessModalDialog"));
|
||||
}
|
||||
if (adTabbox.getSelectedGridTab().isQuickForm()) {
|
||||
adTabbox.getSelectedGridTab().dataRefreshAll(false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
onRefresh(true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue