Skip to content

Commit

Permalink
fixed update unblocking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amd64fox committed Dec 5, 2023
1 parent 9771691 commit b7de687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -854,14 +854,15 @@ if (!($block_update_on) -and !($block_update_off)) {
}
while ($ch -notmatch '^y$|^n$')
}
if ($ch -eq 'y') { $block_update = $true }
if ($ch -eq 'y') { $not_block_update = $false }

if (!($new_theme) -and [version]$offline -ge [version]"1.2.14.1141") {
Write-Warning "This version does not support the old theme, use version 1.2.13.661 or below"
Write-Host
}

if ($ch -eq 'n') {
$not_block_update = $true
$ErrorActionPreference = 'SilentlyContinue'
if ((Test-Path -LiteralPath $exe_bak) -and $offline -eq $offline_bak) {
Remove-Item $spotifyExecutable -Recurse -Force
Expand Down Expand Up @@ -1207,7 +1208,7 @@ function Helper($paramname) {

$binary = $webjson.others.binary

if ($block_update) { Remove-Json -j $binary -p 'BlockUpdate' }
if ($not_block_update) { Remove-Json -j $binary -p 'block_update' }

$name = "patches.json.others.binary."
$n = "Spotify.exe"
Expand Down

0 comments on commit b7de687

Please sign in to comment.