diff --git a/TwitchDesktopNotifications/Core/TwitchFetcher.cs b/TwitchDesktopNotifications/Core/TwitchFetcher.cs
index 797e67b..8ef9649 100644
--- a/TwitchDesktopNotifications/Core/TwitchFetcher.cs
+++ b/TwitchDesktopNotifications/Core/TwitchFetcher.cs
@@ -165,6 +165,7 @@ namespace TwitchDesktopNotifications.Core
if (!found)
{
UserData streamer = FetchUserData(x.UserId);
+ UIStreamer.GetCreateStreamer(x.DisplayName);
Notification.GetInstance().sendNotification(streamer.DisplayName, "https://twitch.tv/" + streamer.UserName, streamer.ProfileImage, x.ThumbnailImg, x.Title);
}
});
diff --git a/TwitchDesktopNotifications/ManageIgnores.xaml b/TwitchDesktopNotifications/ManageIgnores.xaml
index 534669f..2ec22d2 100644
--- a/TwitchDesktopNotifications/ManageIgnores.xaml
+++ b/TwitchDesktopNotifications/ManageIgnores.xaml
@@ -6,45 +6,45 @@
xmlns:local="clr-namespace:TwitchDesktopNotifications"
xmlns:core="clr-namespace:TwitchDesktopNotifications.Core"
mc:Ignorable="d"
- Title="Manage Ignored Streamers" Height="435" Width="395" ResizeMode="NoResize">
+ Title="Manage Ignored Streamers" Height="435" Width="395" ResizeMode="CanResizeWithGrip">
-
-
-
+
-
+
+ CanUserResizeColumns="False"
+ x:Name="dgrdIgnore" ItemsSource="{Binding StreamersToIgnore}" SelectionChanged="dgrdIgnore_SelectionChanged" AutoGenerateColumns="False" CanUserAddRows="False">
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
diff --git a/TwitchDesktopNotifications/ManageIgnores.xaml.cs b/TwitchDesktopNotifications/ManageIgnores.xaml.cs
index 16501e1..83cbdfe 100644
--- a/TwitchDesktopNotifications/ManageIgnores.xaml.cs
+++ b/TwitchDesktopNotifications/ManageIgnores.xaml.cs
@@ -1,5 +1,9 @@
-using System.Windows;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
using System.Windows.Forms;
+using System.Windows.Threading;
using TwitchDesktopNotifications.Core;
namespace TwitchDesktopNotifications
@@ -9,7 +13,6 @@ namespace TwitchDesktopNotifications
///
public partial class ManageIgnores : Window
{
- private bool updated = false;
public ManageIgnores()
{
InitializeComponent();
@@ -22,9 +25,21 @@ namespace TwitchDesktopNotifications
this.Close();
}
- private void OnChecked(object sender, RoutedEventArgs e)
+ private void dgrdIgnore_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
- updated= true;
+ Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() => dgrdIgnore.UnselectAll()));
+ }
+
+ private void HyperLink_Click(object sender, RoutedEventArgs e)
+ {
+ string link = ((Hyperlink)e.OriginalSource).NavigateUri.OriginalString;
+
+ var psi = new ProcessStartInfo
+ {
+ FileName = link,
+ UseShellExecute = true
+ };
+ Process.Start(psi);
}
}
}