Skip to content

Conversation

@ManuZhu0728
Copy link
Contributor

Problem

The "Torrent Location" button was incorrectly disabled when the lastPaths (download history) list was empty.

This behavior prevented users from selecting a directory from their Pre-configured directories if they hadn't manually entered a path before. Even if pre-defined paths existed, the button remained unclickable because the logic only checked for lastPaths.

Solution

Updated the disabled condition in the TorrentLocation component.

Logic Change:

  • Before: Disabled if lastPaths is empty.
  • After: Disabled if BOTH lastPaths AND preconfiguredDirs are empty.

Now, users can access the directory selection menu to choose a pre-configured path even if their download history is empty.

Related Issue

ManuZhu0728#6

@qu1ck qu1ck merged commit bad3dd5 into openscopeproject:master Dec 11, 2025
3 checks passed
@qu1ck
Copy link
Member

qu1ck commented Dec 11, 2025

Thanks!

@ManuZhu0728 ManuZhu0728 deleted the fix/downloadpath-pr branch December 11, 2025 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants