mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-10 13:22:24 +00:00
Only execute commands from code if allowed
This commit is contained in:
@@ -54,8 +54,7 @@ public partial class HyperLink : UserControl
|
||||
{
|
||||
if (Command is not null)
|
||||
{
|
||||
if (Command.CanExecute(CommandParameter))
|
||||
Command.Execute(CommandParameter);
|
||||
Command.ExecuteIfCan(CommandParameter);
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(Url))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user