Do not auto-close the browser when a download starts (only show downloads window if browser closed)

This commit is contained in:
Pixelplanet committed 2026-10-15 19:25:29 +02:00
1 parent 398d8de4eb
commit ffd21b56bf
1 file changed
+3 -4
+3 -4
View File
@@ -531,12 +531,11 @@ int App::run() {
if (browser_.downloadActive()) {
downloadToastText_ = browser_.downloadText();
downloadToast_ = nowT + std::chrono::seconds(10);
// On the rising edge of a download, close the file browser and
// open the downloads window so progress is immediately visible.
// Show the downloads window on the rising edge only if the user
// is not already browsing; do not close the browser.
if (!dlWasActive_) {
dlWasActive_ = true;
downloadsWindow_ = true;
browser_.setOpen(false);
if (!browser_.isOpen()) downloadsWindow_ = true;
}
} else {
dlWasActive_ = false;