LAN_SERVER pref notebook has nothing to show

This commit is contained in:
Thomas Debesse 2018-04-02 05:38:22 +02:00
parent a7a4c6141f
commit d2b9108e25

View File

@ -2699,7 +2699,8 @@ static GtkWidget *generic_game_frame (enum server_type type) {
gtk_box_pack_start(GTK_BOX(page_vbox), notebook, TRUE, TRUE, 0);
if ((games[type].flags & GAME_CONNECT) == 0) {
label = gtk_label_new(_("*** Not Implemented ***"));
char* message = type == LAN_SERVER? "": _("*** Not Implemented ***");
label = gtk_label_new(message);
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
gtk_widget_show(label);