aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-12-23 16:54:19 +0100
committerfiaxh <git@lightrise.org>2019-12-23 16:54:19 +0100
commit3218dc0211ac717230fe03fad82681a626d968b5 (patch)
tree129f5f7bc631c1ffe2884662bbad070fb7bd0230 /main/src/ui
parent1eb01251e89760443d20fa6e200f2f4fdafd4e35 (diff)
downloaddino-3218dc0211ac717230fe03fad82681a626d968b5.tar.gz
dino-3218dc0211ac717230fe03fad82681a626d968b5.zip
Improve account setup success screen
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/manage_accounts/add_account_dialog.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala
index 5dd6621b..459e91d3 100644
--- a/main/src/ui/manage_accounts/add_account_dialog.vala
+++ b/main/src/ui/manage_accounts/add_account_dialog.vala
@@ -191,7 +191,7 @@ public class AddAccountDialog : Gtk.Dialog {
animate_window_resize(register_box);
}
- private void show_success() {
+ private void show_success(Account account) {
success_box.visible = true;
stack.visible_child_name = "success";
sign_in_jid_box.visible = false;
@@ -199,7 +199,7 @@ public class AddAccountDialog : Gtk.Dialog {
sign_in_password_box.visible = false;
create_account_box.visible = false;
register_box.visible = false;
- success_description.label = _("You can now start using %s").printf("<b>" + Markup.escape_text(jid_entry.text) + "</b>");
+ success_description.label = _("You can now start using %s").printf("<b>" + Markup.escape_text(account.bare_jid.to_string()) + "</b>");
set_default(success_continue_button);
}
@@ -261,7 +261,7 @@ public class AddAccountDialog : Gtk.Dialog {
}
} else {
add_activate_account(account);
- show_success();
+ show_success(account);
}
}
@@ -343,7 +343,7 @@ public class AddAccountDialog : Gtk.Dialog {
}
Account account = new Account(new Jid.components(username, server_jid.domainpart, null), null, password, null);
add_activate_account(account);
- show_success();
+ show_success(account);
} else {
display_notification(error);
}