fix path resolution in startDownloadDirectory

This commit is contained in:
Eugene
2026-07-12 23:15:59 +02:00
parent 86a5bfa76d
commit 15f21c5ddc
@@ -327,10 +327,10 @@ export class ElectronPlatformService extends PlatformService {
return null return null
} }
let downloadPath = path.join(selectedFolder, name) let downloadPath = resolveInsideBase(selectedFolder, name)
let counter = 1 let counter = 1
while (fsSync.existsSync(downloadPath)) { while (fsSync.existsSync(downloadPath)) {
downloadPath = path.join(selectedFolder, `${name} (${counter})`) downloadPath = resolveInsideBase(selectedFolder, `${name} (${counter})`)
counter++ counter++
} }