modalDialog: Make the button layout visible always
With the last button-less modal dialog gone, there's no reason it should ever be hidden. https://bugzilla.gnome.org/show_bug.cgi?id=690594
This commit is contained in:
parent
ebd1bc83c9
commit
42e58a4b72
@ -96,7 +96,6 @@ const ModalDialog = new Lang.Class({
|
||||
y_align: St.Align.START });
|
||||
|
||||
this.buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box',
|
||||
visible: false,
|
||||
vertical: false });
|
||||
this.dialogLayout.add(this.buttonLayout,
|
||||
{ expand: true,
|
||||
@ -120,7 +119,6 @@ const ModalDialog = new Lang.Class({
|
||||
|
||||
setButtons: function(buttons) {
|
||||
this.clearButtons();
|
||||
this.buttonLayout.visible = (buttons.length > 0);
|
||||
|
||||
for (let i = 0; i < buttons.length; i++) {
|
||||
let buttonInfo = buttons[i];
|
||||
|
Loading…
Reference in New Issue
Block a user