fixed select dialog

This commit is contained in:
duffyduck 2026-02-11 20:35:01 +01:00
parent 9c278f2ea6
commit 4764367473
1 changed files with 2 additions and 2 deletions

View File

@ -1096,7 +1096,7 @@ function Show-MainForm {
$saveDialog.FileName = "Drucker_$($env:COMPUTERNAME)_$(Get-Date -Format 'yyyy-MM-dd')" $saveDialog.FileName = "Drucker_$($env:COMPUTERNAME)_$(Get-Date -Format 'yyyy-MM-dd')"
$saveDialog.Title = "Sicherungsdatei speichern" $saveDialog.Title = "Sicherungsdatei speichern"
if ($saveDialog.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK) { if ($saveDialog.ShowDialog($form) -eq [System.Windows.Forms.DialogResult]::OK) {
$selectedPrinters = @() $selectedPrinters = @()
foreach ($idx in $checkedIndices) { foreach ($idx in $checkedIndices) {
$selectedPrinters += $script:AllPrinterData[$idx] $selectedPrinters += $script:AllPrinterData[$idx]
@ -1142,7 +1142,7 @@ function Show-MainForm {
$openDialog.Filter = "Drucker-Sicherung (*.zip)|*.zip|Alle Dateien (*.*)|*.*" $openDialog.Filter = "Drucker-Sicherung (*.zip)|*.zip|Alle Dateien (*.*)|*.*"
$openDialog.Title = "Sicherungsdatei oeffnen" $openDialog.Title = "Sicherungsdatei oeffnen"
if ($openDialog.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK) { if ($openDialog.ShowDialog($form) -eq [System.Windows.Forms.DialogResult]::OK) {
$txtImportPath.Text = $openDialog.FileName $txtImportPath.Text = $openDialog.FileName
# Vorherigen Import aufraeumen # Vorherigen Import aufraeumen