From a397f20ac6e457ef1b1612871c93b568604ca778 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Fri, 30 Aug 2024 16:29:23 +0200 Subject: [PATCH] improve impex (#2649) - 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 9b03cc13..43d835de 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 370246cb..b6097a17 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -782,8 +782,16 @@ HorizontalAlignment="Right" VerticalAlignment="Top"> - - + + + + + + + + + +