Fix name on new server

This commit is contained in:
oupson 2023-03-04 23:29:34 +01:00
parent 3df4119fa0
commit 43eeee4343
Signed by: oupson
GPG Key ID: 3BD88615552EFCB7
1 changed files with 3 additions and 3 deletions

View File

@ -36,13 +36,13 @@ namespace Footerm {
public signal void on_server_selected (Footerm.Model.Server server); public signal void on_server_selected (Footerm.Model.Server server);
construct { construct {
this.new_server.on_new_server.connect ((s) => { this.new_server.on_new_server.connect ((server) => {
this.newpane_stack.set_visible_child (server_list.get_parent ()); this.newpane_stack.set_visible_child (server_list.get_parent ());
var action_row = new Adw.ActionRow (); var action_row = new Adw.ActionRow ();
action_row.set_title (s.hostname); action_row.set_title (server.name);
action_row.set_activatable (true); action_row.set_activatable (true);
action_row.activated.connect (() => { action_row.activated.connect (() => {
this.on_server_selected (s); this.on_server_selected (server);
}); });
server_list.add (action_row); server_list.add (action_row);
}); });