From 380e1e73a6a9fbdbe13974c175144ca2e716186e Mon Sep 17 00:00:00 2001 From: barontek <77251913+barontek@users.noreply.github.com> Date: Tue, 10 Sep 2024 04:15:13 +0300 Subject: [PATCH] Fix (?) button opening the link twice (#2664) --- functions/public/Invoke-WPFUIElements.ps1 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index f8e9c7ba..a1ed8568 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -304,13 +304,6 @@ function Invoke-WPFUIElements { $textBlock.ToolTip = $entryInfo.Link $textBlock.Style = $HoverTextBlockStyle - # Add event handler for click to open link - $handler = [System.Windows.Input.MouseButtonEventHandler]{ - param($sender, $e) - Start-Process $sender.ToolTip.ToString() - } - $textBlock.AddHandler([Windows.Controls.TextBlock]::MouseLeftButtonUpEvent, $handler) - $horizontalStackPanel.Children.Add($textBlock) | Out-Null $sync[$textBlock.Name] = $textBlock