Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Torrents: Open folder works while a torrent is still downloading (#354) (#370)

Ahmed Nefzaoui5d30a7c36b2e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e86a53ae..38353e56 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- **Open folder** works on a torrent that is still downloading ([#354](https://github.com/anefzaoui/misterdownloadmanager/issues/354)).
- **Alt** and **F10** open the menu bar while a button or the list has the keyboard focus, not only when nothing does ([#328](https://github.com/anefzaoui/misterdownloadmanager/issues/328)).
- Windows: no more crash on a computer where Direct3D can't start, when a window opened during the switch to OpenGL ([#337](https://github.com/anefzaoui/misterdownloadmanager/issues/337)).
- Windows: no more crash when a screen is unplugged, turned off or rearranged while MDM runs ([#335](https://github.com/anefzaoui/misterdownloadmanager/issues/335)).
diff --git a/ROADMAP.md b/ROADMAP.md
index 0f7a8957..d1c8a0c0 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -454,6 +454,8 @@ These ship in a later version, when they're ready.
### Bugs being looked into
+- πŸ”„ **Open folder** on a torrent still downloading
+ ([#354](https://github.com/anefzaoui/misterdownloadmanager/issues/354)): fix in review
- πŸ”„ Alt and F10 opening the menu bar with a control focused
([#328](https://github.com/anefzaoui/misterdownloadmanager/issues/328)): fix in review
- πŸ”„ Crash on Windows when a window opens while MDM falls back from Direct3D to OpenGL
diff --git a/crates/app/src/app.rs b/crates/app/src/app.rs
index 1559113a..fe0e7701 100644
--- a/crates/app/src/app.rs
+++ b/crates/app/src/app.rs
@@ -5746,7 +5746,13 @@ impl App {
// i18n: verb: opens the downloaded file
I("Open", Cmd::Open, done, false),
I("Open with...", Cmd::OpenWith, done, false),
- I("Open folder", Cmd::OpenFolder, done, false),
+ // A torrent's folder is there while it downloads (#354).
+ I(
+ "Open folder",
+ Cmd::OpenFolder,
+ done || it.is_some_and(|i| i.torrent.is_some()),
+ false,
+ ),
Sep,
I("Move/Rename (Ctrl-M)", Cmd::MoveRename, movable, false),
Sep,