Rely on selection changed event for updating controls

This event makes other calls redundant because it's always sent from
setPage and onReplacePart.

Bug: T311296
Change-Id: If214a713ed7299320d499c3e5687eda013fe0aab
This commit is contained in:
Adam Wight 2022-06-30 08:55:38 +02:00
parent 699c73893d
commit 7d023e2dce
2 changed files with 0 additions and 4 deletions

View file

@ -189,7 +189,6 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
this.autoExpandSidebar();
this.updateModeActionState();
this.updateActionSet();
this.bookletLayout.refreshControls();
};
/**

View file

@ -450,9 +450,6 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.setPage = function ( name ) {
}
page.setActive( true );
this.stackLayout.setItem( page );
this.refreshControls();
this.emit( 'set', page );
};