mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
Replace install progress overlay with shared indicator (#4844)
* Use shared progress for app workflows * Remove legacy install progress overlay * Document shared app progress indicator * Address progress review feedback * Track all Win11 ISO progress * Restore Win11 Creator work on relaunch
This commit is contained in:
@@ -65,10 +65,6 @@ namespace System.Windows.Controls
|
||||
. (Join-Path $script:repoRoot "functions\public\Invoke-WPFButton.ps1")
|
||||
. (Join-Path $script:repoRoot "functions\public\Invoke-WPFToggleAllCategories.ps1")
|
||||
|
||||
function Set-WinUtilProgressBar {
|
||||
param($Label, $Percent)
|
||||
}
|
||||
|
||||
function Set-WinUtilTweaksProgressIndicator {
|
||||
param($Visible, $Label, $Percent)
|
||||
}
|
||||
@@ -303,7 +299,6 @@ Describe "Invoke-WPFToggleAllCategories" {
|
||||
Describe "Invoke-WPFButton progress cleanup" {
|
||||
BeforeEach {
|
||||
New-WinUtilUiStateTestContext
|
||||
Mock Set-WinUtilProgressBar { }
|
||||
Mock Set-WinUtilTweaksProgressIndicator { }
|
||||
}
|
||||
|
||||
@@ -317,9 +312,6 @@ Describe "Invoke-WPFButton progress cleanup" {
|
||||
|
||||
Invoke-WPFButton -Button "WPFNoOp"
|
||||
|
||||
Should -Invoke Set-WinUtilProgressBar -Times 1 -Exactly -ParameterFilter {
|
||||
$Label -eq "" -and $Percent -eq 0
|
||||
}
|
||||
Should -Invoke Set-WinUtilTweaksProgressIndicator -Times 1 -Exactly -ParameterFilter {
|
||||
$Visible -eq $false
|
||||
}
|
||||
@@ -330,7 +322,15 @@ Describe "Invoke-WPFButton progress cleanup" {
|
||||
|
||||
Invoke-WPFButton -Button "WPFNoOp"
|
||||
|
||||
Should -Not -Invoke Set-WinUtilProgressBar
|
||||
Should -Not -Invoke Set-WinUtilTweaksProgressIndicator
|
||||
}
|
||||
|
||||
It "leaves progress visible while a Win11 ISO process is running" {
|
||||
$script:sync.ProcessRunning = $false
|
||||
$script:sync.Win11ISOProcessRunning = $true
|
||||
|
||||
Invoke-WPFButton -Button "WPFNoOp"
|
||||
|
||||
Should -Not -Invoke Set-WinUtilTweaksProgressIndicator
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user