SysLog(NID_UI_SCENES, "Safety operation ongoing. Animation may not working, Please check the problems!");
}
- r = pFrame->SetCurrentForm(form);
- SysTryReturnResult(NID_UI_SCENES, !IsFailed(r), E_SYSTEM, "A system error has been occurred. Can not set current form.");
+ // Check the current Form, if already current one then skip the SetCurrentForm().
+ if (GetCurrentForm() == &form)
+ {
+ SysSecureLog(NID_UI_SCENES, "The Form already set as current form, skip the SetCurrentForm()");
+ }
+ else
+ {
+ r = pFrame->SetCurrentForm(form);
+ SysTryReturnResult(NID_UI_SCENES, !IsFailed(r), E_SYSTEM, "A system error has been occurred. Can not set current form.");
+ }
return E_SUCCESS;
}