[PE] Refactoring

This commit is contained in:
Julia Radzhabova 2021-08-05 11:13:26 +03:00
parent 6e170edc33
commit 4054c1f3ec

View file

@ -223,10 +223,10 @@ define([
slide_deleted = pr.get_LockDelete();
locked_transition = pr.get_LockTransition();
if (slide_deleted !== undefined && me._state.slidecontrolsdisable !== slide_deleted) {
if (me._state.activated) me._state.slidecontrolsdisable = slide_deleted;
me.lockToolbar(PE.enumLock.slideDeleted, slide_deleted);
}
// if (slide_deleted !== undefined && me._state.slidecontrolsdisable !== slide_deleted) {
// if (me._state.activated) me._state.slidecontrolsdisable = slide_deleted;
// me.lockToolbar(PE.enumLock.slideDeleted, slide_deleted);
// }
if (locked_transition !== undefined && me._state.lockedtransition !== locked_transition ) {
if (me._state.activated) me._state.lockedtransition = locked_transition;
me.lockToolbar(PE.enumLock.transitLock, locked_transition);