mirror of https://github.com/oupson/FooTerm.git
Fix name on new server
This commit is contained in:
parent
3df4119fa0
commit
43eeee4343
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue