Updates to finally secure the Twitch codes so i don't have to keep adding them for compile and removing them for Source Distribution. fixed a Bug in the notification system that ment dismiss did not work.

This commit is contained in:
Martin Barker
2023-01-28 15:17:50 +00:00
parent 77cae0c9c8
commit e9f291f6f7
5 changed files with 31 additions and 20 deletions

View File

@@ -22,10 +22,18 @@ namespace TwitchDesktopNotifications.Core
try
{
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.FileName = args["streamerUrl"];
myProcess.Start();
if (
// action is defined and set to watch
( args.Contains("action") && args["action"] == "watch" )
||
// action is not defined so the user just generally clicked on the notification
!args.Contains("action")
){
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.FileName = args["streamerUrl"];
myProcess.Start();
}
}catch(Exception ex) { }
};
}