Commit 5ac18d4b authored by Florian Müllner's avatar Florian Müllner

connection: Fix GObject property name

Commit 2e6956e3 turned ConnectionDetails:can-confirm into a GObject
property, but kept the old JS property name of canConfirm. While
this worked mostly as we were accessing the property directly, it
broke the binding the property in the connection dialog.
parent c9d831c6
......@@ -246,13 +246,13 @@ const ConnectionDetails = new Lang.Class({
this._descEntry.text = account.display_name;
},
get canConfirm() {
get can_confirm() {
return this._serverEntry.get_text_length() > 0 &&
this._nickEntry.get_text_length() > 0;
},
save: function() {
if (!this.canConfirm)
if (!this.can_confirm)
return;
if (this._account)
......
......@@ -192,7 +192,7 @@ const JoinDialog = new Lang.Class({
sensitive = this._connectionCombo.get_active() > -1 &&
this._nameEntry.get_text_length() > 0;
} else {
sensitive = this._details.canConfirm;
sensitive = this._details.can_confirm;
}
this._confirmButton.sensitive = sensitive;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment