From 89a7910a57971aa46104591ddf530296c989b1dc Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 15 Jan 2018 12:22:05 +0400 Subject: [PATCH] (GUI): trim newlines from statusline messages. --- GUI/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/MainWindow.xaml.cs b/GUI/MainWindow.xaml.cs index 67f8be07..9380b602 100644 --- a/GUI/MainWindow.xaml.cs +++ b/GUI/MainWindow.xaml.cs @@ -183,12 +183,12 @@ namespace GARbro.GUI /// public void SetStatusText (string text) { - Dispatcher.Invoke (() => { appStatusText.Text = text; }); + Dispatcher.Invoke (() => { appStatusText.Text = text.Trim(); }); } public void SetResourceText (string text) { - Dispatcher.Invoke (() => { appResourceText.Text = text; }); + Dispatcher.Invoke (() => { appResourceText.Text = text.Trim(); }); } ///