mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Clean: Install - Powershell selection
This commit is contained in:
parent
9d6be93ad6
commit
ac51fa2753
1 changed files with 1 additions and 10 deletions
11
install.ps1
11
install.ps1
|
|
@ -704,36 +704,27 @@ function Apply-CustomFile() {
|
|||
$local:menuReset="Reset- Reset to pure lepton theme without custom"
|
||||
|
||||
Write-Host "Select custom method"
|
||||
while ( $true ) {
|
||||
$local:selected = $false
|
||||
while ( "${customMethod}" -eq "" ) {
|
||||
$local:applyMethod = Menu @("${menuAppend}", "${menuOverwrite}", "${menuNone}", "${menuReset}")
|
||||
switch ( $applyMethod ) {
|
||||
"${menuAppend}" {
|
||||
$global:customMethod = "Append"
|
||||
$global:customAppend = $true
|
||||
$selected = $true
|
||||
}
|
||||
"${menuOverwrite}" {
|
||||
$global:customMethod = "Overwrite"
|
||||
$global:customReset = $true
|
||||
$global:customAppend = $true
|
||||
$selected = $true
|
||||
}
|
||||
"${menuNone}" {
|
||||
$global:customMethod = "None"
|
||||
$selected = $true
|
||||
}
|
||||
"${menuReset}" {
|
||||
$global:customMethod = "Reset"
|
||||
$global:customReset = $true
|
||||
$selected = $true
|
||||
}
|
||||
default { Write-Host "Invalid option, reselect please." }
|
||||
}
|
||||
|
||||
if ( $selected -eq $true ) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Lepton-OKMessage "Selected ${customMethod}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue