improve impex (#2649)

- copy execution command to clipboard
- add tooltips to import & export menu items
This commit is contained in:
MyDrift
2024-08-30 16:29:23 +02:00
committed by GitHub
parent bddf57bcee
commit a397f20ac6
2 changed files with 12 additions and 2 deletions

View File

@ -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