Update bug report and fix no_shortcut

- added a question about the country of the account
 - fix no_shortcut
This commit is contained in:
amd64fox
2022-08-14 18:41:13 +03:00
parent 95aeeeb745
commit 5d9acf57e2
2 changed files with 21 additions and 7 deletions

View File

@@ -15,7 +15,18 @@ body:
required: true
- type: markdown
attributes:
value: "###"
value: "###"
- type: input
id: lang_spoti
attributes:
label: Сountry of your account
description: You can view your country on your account page, in paragraph <a href="https://www.spotify.com/account/">Country or region</a>.
placeholder: "e.g. Ukraine"
validations:
required: true
- type: markdown
attributes:
value: "###"
- type: dropdown
id: plan
attributes:
@@ -80,3 +91,4 @@ body:
description: Place any screenshots of the issue here if needed
validations:
required: false

View File

@@ -1068,12 +1068,14 @@ if (-not $spotifyInstalled -or $upgrade_client) {
while (-not (get-process | Where-Object { $_.ProcessName -eq 'SpotifySetup' })) {}
wait-process -name SpotifySetup
Stop-Process -Name Spotify
if ($no_shortcut) {
$ErrorActionPreference = 'SilentlyContinue'
$desktop_folder = DesktopFolder
Start-Sleep -Milliseconds 1000
remove-item "$desktop_folder\Spotify.lnk" -Recurse -Force
}
}
# Delete Spotify shortcut if it is on desktop
if ($no_shortcut) {
$ErrorActionPreference = 'SilentlyContinue'
$desktop_folder = DesktopFolder
Start-Sleep -Milliseconds 1000
remove-item "$desktop_folder\Spotify.lnk" -Recurse -Force
}
# Delete the leveldb folder (Fixes bug with incorrect experimental features for some accounts)