diff --git a/e621 ReBot v3/Windows/Window_Blacklist.xaml b/e621 ReBot v3/Windows/Window_Blacklist.xaml index f9fad3a..611d41e 100644 --- a/e621 ReBot v3/Windows/Window_Blacklist.xaml +++ b/e621 ReBot v3/Windows/Window_Blacklist.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" - Title="Blacklist" Height="256" Width="512" WindowStyle="ToolWindow" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" Loaded="Window_Loaded" Closed="Window_Closed"> + Title="Blacklist" Height="256" Width="512" WindowStyle="ToolWindow" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" Loaded="Window_Loaded" Closing="Window_Closing" Closed="Window_Closed"> diff --git a/e621 ReBot v3/Windows/Window_Blacklist.xaml.cs b/e621 ReBot v3/Windows/Window_Blacklist.xaml.cs index 56e0184..6b8c2d3 100644 --- a/e621 ReBot v3/Windows/Window_Blacklist.xaml.cs +++ b/e621 ReBot v3/Windows/Window_Blacklist.xaml.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Input; @@ -47,7 +48,7 @@ private void Blacklist_TextBox_PreviewKeyDown(object sender, KeyEventArgs e) } } - private void Window_Closed(object sender, EventArgs e) + private void Window_Closing(object sender, CancelEventArgs e) { List NewBlacklist = new List(); Blacklist_TextBox.Text = Blacklist_TextBox.Text.Trim().ToLower(); @@ -57,6 +58,10 @@ private void Window_Closed(object sender, EventArgs e) if (TBLine.Length > 0) NewBlacklist.Add(TBLine); } AppSettings.Blacklist = NewBlacklist; + } + + private void Window_Closed(object sender, EventArgs e) + { _RefHolder = null; Owner.Activate(); } diff --git a/e621 ReBot v3/e621 ReBot v3.csproj b/e621 ReBot v3/e621 ReBot v3.csproj index 276ba9c..49feb14 100644 --- a/e621 ReBot v3/e621 ReBot v3.csproj +++ b/e621 ReBot v3/e621 ReBot v3.csproj @@ -11,7 +11,7 @@ Resources\ReBot_Icon.ico x64 False - 3.0.0.48 + 3.0.0.49 e621_ReBot_v3.App False https://github.com/e621-ReBot/e621-ReBot-v3