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:
Carlos Ruiz 2022-10-16 16:21:56 +02:00 committed by GitHub
parent 7ffb18b8e2
commit 221384a1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -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);
}
}
}