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"
|
$local:menuReset="Reset- Reset to pure lepton theme without custom"
|
||||||
|
|
||||||
Write-Host "Select custom method"
|
Write-Host "Select custom method"
|
||||||
while ( $true ) {
|
while ( "${customMethod}" -eq "" ) {
|
||||||
$local:selected = $false
|
|
||||||
$local:applyMethod = Menu @("${menuAppend}", "${menuOverwrite}", "${menuNone}", "${menuReset}")
|
$local:applyMethod = Menu @("${menuAppend}", "${menuOverwrite}", "${menuNone}", "${menuReset}")
|
||||||
switch ( $applyMethod ) {
|
switch ( $applyMethod ) {
|
||||||
"${menuAppend}" {
|
"${menuAppend}" {
|
||||||
$global:customMethod = "Append"
|
$global:customMethod = "Append"
|
||||||
$global:customAppend = $true
|
$global:customAppend = $true
|
||||||
$selected = $true
|
|
||||||
}
|
}
|
||||||
"${menuOverwrite}" {
|
"${menuOverwrite}" {
|
||||||
$global:customMethod = "Overwrite"
|
$global:customMethod = "Overwrite"
|
||||||
$global:customReset = $true
|
$global:customReset = $true
|
||||||
$global:customAppend = $true
|
$global:customAppend = $true
|
||||||
$selected = $true
|
|
||||||
}
|
}
|
||||||
"${menuNone}" {
|
"${menuNone}" {
|
||||||
$global:customMethod = "None"
|
$global:customMethod = "None"
|
||||||
$selected = $true
|
|
||||||
}
|
}
|
||||||
"${menuReset}" {
|
"${menuReset}" {
|
||||||
$global:customMethod = "Reset"
|
$global:customMethod = "Reset"
|
||||||
$global:customReset = $true
|
$global:customReset = $true
|
||||||
$selected = $true
|
|
||||||
}
|
}
|
||||||
default { Write-Host "Invalid option, reselect please." }
|
default { Write-Host "Invalid option, reselect please." }
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $selected -eq $true ) {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Lepton-OKMessage "Selected ${customMethod}"
|
Lepton-OKMessage "Selected ${customMethod}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue