From ec4ea0898d10df616fbef7f8423ca59901dc337e Mon Sep 17 00:00:00 2001 From: erri120 Date: Fri, 11 Oct 2019 15:04:33 +0200 Subject: [PATCH] Changed text viewer title to modlist title --- Wabbajack/AppState.cs | 2 +- Wabbajack/UI/TextViewer.xaml | 1 - Wabbajack/UI/TextViewer.xaml.cs | 8 +++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Wabbajack/AppState.cs b/Wabbajack/AppState.cs index b0c6abef..02f5f028 100644 --- a/Wabbajack/AppState.cs +++ b/Wabbajack/AppState.cs @@ -273,7 +273,7 @@ namespace Wabbajack } } - var viewer = new TextViewer(text); + var viewer = new TextViewer(text, _ModListName); viewer.Show(); } } diff --git a/Wabbajack/UI/TextViewer.xaml b/Wabbajack/UI/TextViewer.xaml index a2013842..2c56bb7c 100644 --- a/Wabbajack/UI/TextViewer.xaml +++ b/Wabbajack/UI/TextViewer.xaml @@ -11,6 +11,5 @@ Title="TextViewer" Height="450" Width="800"> - diff --git a/Wabbajack/UI/TextViewer.xaml.cs b/Wabbajack/UI/TextViewer.xaml.cs index d6884a34..792de20d 100644 --- a/Wabbajack/UI/TextViewer.xaml.cs +++ b/Wabbajack/UI/TextViewer.xaml.cs @@ -1,16 +1,14 @@ -using System; -using System.Windows; -using System.Windows.Documents; +using System.Windows; namespace Wabbajack.UI { public partial class TextViewer : Window { - public TextViewer(string text) + public TextViewer(string text, string title) { InitializeComponent(); TextBlock.Text = text; - + Title = title; } } }