From dbaced72f4741a6daed0f9fa987abc942df8a53a Mon Sep 17 00:00:00 2001 From: MyDrift Date: Fri, 30 Aug 2024 12:05:05 +0200 Subject: [PATCH] improve impex - copy execution command to clipboard - add tooltips to import & export menu items --- functions/public/Invoke-WPFImpex.ps1 | 2 ++ xaml/inputXML.xaml | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/functions/public/Invoke-WPFImpex.ps1 b/functions/public/Invoke-WPFImpex.ps1 index 9b03cc13fc..43d835de95 100644 --- a/functions/public/Invoke-WPFImpex.ps1 +++ b/functions/public/Invoke-WPFImpex.ps1 @@ -41,6 +41,8 @@ function Invoke-WPFImpex { if ($type -eq "export") { $jsonFile = Get-WinUtilCheckBoxes -unCheck $false $jsonFile | ConvertTo-Json | Out-File $FileBrowser.FileName -Force + $runscript = "iex ""& { `$(irm christitus.com/win) } -Config '$($FileBrowser.FileName)'""" + $runscript | Set-Clipboard } if ($type -eq "import") { $jsonFile = Get-Content $Config | ConvertFrom-Json diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index 15cb0f176d..805cafb5a5 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -782,8 +782,16 @@ HorizontalAlignment="Right" VerticalAlignment="Top"> - - + + + + + + + + + +