mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-17 10:17:44 -06:00
Remove Winutil ForceInstall and unnecessary loading bar
This commit is contained in:
parent
b8d120b4ee
commit
bf218fdd96
@ -133,9 +133,17 @@ $sync.keys | ForEach-Object {
|
|||||||
|
|
||||||
# Load computer information in the background
|
# Load computer information in the background
|
||||||
Invoke-WPFRunspace -ScriptBlock {
|
Invoke-WPFRunspace -ScriptBlock {
|
||||||
$sync.ConfigLoaded = $False
|
try{
|
||||||
$sync.ComputerInfo = Get-ComputerInfo
|
$oldProgressPreference = $ProgressPreference
|
||||||
$sync.ConfigLoaded = $True
|
$ProgressPreference = "SilentlyContinue"
|
||||||
|
$sync.ConfigLoaded = $False
|
||||||
|
$sync.ComputerInfo = Get-ComputerInfo
|
||||||
|
$sync.ConfigLoaded = $True
|
||||||
|
}
|
||||||
|
finally{
|
||||||
|
$ProgressPreference = "Continue"
|
||||||
|
}
|
||||||
|
|
||||||
} | Out-Null
|
} | Out-Null
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
@ -145,9 +153,6 @@ Invoke-WPFRunspace -ScriptBlock {
|
|||||||
# Print the logo
|
# Print the logo
|
||||||
Invoke-WPFFormVariables
|
Invoke-WPFFormVariables
|
||||||
|
|
||||||
# Install Winget if not already present
|
|
||||||
Install-WinUtilWinget
|
|
||||||
|
|
||||||
# Set the titlebar
|
# Set the titlebar
|
||||||
$sync["Form"].title = $sync["Form"].title + " " + $sync.version
|
$sync["Form"].title = $sync["Form"].title + " " + $sync.version
|
||||||
# Set the commands that will run when the form is closed
|
# Set the commands that will run when the form is closed
|
||||||
|
Loading…
Reference in New Issue
Block a user