From 640020d23f33f425a229c4110d574482d5e339c8 Mon Sep 17 00:00:00 2001 From: pztrn Date: Wed, 12 Oct 2016 22:18:36 +0500 Subject: [PATCH] Fixed server name putting into status label. Some server's names (like Turnpike City) was tructating without preserving Pango markup integrity. This commit fixes it. --- ui/mainwindow_launch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/mainwindow_launch.go b/ui/mainwindow_launch.go index ea081c8..9fae39a 100644 --- a/ui/mainwindow_launch.go +++ b/ui/mainwindow_launch.go @@ -193,6 +193,9 @@ func (m *MainWindow) launchActually(server_profile *datamodels.Server, user_prof srv_name_for_label := server_profile.Name if strings.Contains(server_profile.Name, "markup") { srv_name_for_label = string([]byte(server_profile.Name)[8:len(server_profile.Name)-9]) + } else { + srv_name := ctx.Colorizer.Fix(server_profile.Name) + srv_name_for_label = string([]byte(srv_name)[8:len(srv_name)-9]) } // Show great coloured label. ctx.Eventer.LaunchEvent("setToolbarLabelText", map[string]string{"text": "Urban Terror is launched with profile " + user_profile.Name + " and connected to " + srv_name_for_label + ""})