Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Open Downloads not working #2576

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Fix Open Downloads not working #2576

merged 2 commits into from
Apr 10, 2024

Conversation

mallexxx
Copy link
Collaborator

@mallexxx mallexxx commented Apr 8, 2024

Task/Issue URL: https://app.asana.com/0/1199230911884351/1207020636198102/f

Description:

  • Fix open downloads not working in some cases

Steps to test this PR:

  1. Check "Always ask for location" in the App Store build
  2. Start a download to a custom folder (e.g. Desktop)
  3. Click "Open Downloads" - nothing happens

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@mallexxx mallexxx requested a review from ayoy April 8, 2024 16:15
@@ -75,7 +75,7 @@ final class DownloadViewModel {
}

func update(with item: DownloadListItem) {
self.localURL = item.destinationURL
self.localURL = item.tempURL == nil ? item.destinationURL : nil // only return destination file URL for completed downloads
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this disables double-click to open non-finished downloads and revealing the (temporary) hidden destination file while the download is ongoing

Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👏

@mallexxx mallexxx merged commit b73b0b3 into main Apr 10, 2024
18 checks passed
@mallexxx mallexxx deleted the alex/fix-open-downloads branch April 10, 2024 07:02
samsymons added a commit that referenced this pull request Apr 12, 2024
# By Dax the Duck (10) and others
# Via GitHub (6) and others
* main: (40 commits)
  Bump version to 1.83.0 (160)
  macOS VPN: Ask users to reboot if system extension was not uninstalled (#2603)
  macOS VPN: Ask users to reboot if system extension was not uninstalled (#2603)
  Fix popover not displayed reliably when VPN shortcut is unpinned (#2606)
  Automatically mark / close stale PRs (#2596)
  Update copy for DBP open button (#2586)
  Bump version to 1.83.0 (159)
  [Release PR] Fix lottie high Windowserver load (#2598)
  Bump version to 1.83.0 (158)
  BSK release 133.1.0 (#2597)
  Fix VPN bug: Nearest city breaks register requests (#2589)
  Fix lottie high Windowserver load (#2595)
  drop Downloads storyboard (#2556)
  Disable directory download (#2585)
  Add supported document types (#2581)
  Allow choosing downloads location in App Store builds (#2532)
  Fix Open Downloads not working (#2576)
  Update Privacy Dashboard URL on navigation commit (#2583)
  Percent-decode download filenames (#2584)
  Bump version to 1.83.0 (157)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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