diff --git a/comment_reply.txt b/comment_reply.txt new file mode 100644 index 000000000..3c684643b --- /dev/null +++ b/comment_reply.txt @@ -0,0 +1,7 @@ +@USBhost Thanks for the important clarification! To clarify for WebUI users: + +1. The desktop client changes in #23087 add the warning dialog automatically +2. For WebUI performance with large torrents, you need to *manually enable* the virtual list feature (#22502) in: + **Preferences → Behavior → Custom WebUI settings → "Enable optimized table rendering (experimental)"** + +This separate setting is required because WebUI uses different technical implementation. Enabling it will optimize file listing performance similar to the desktop warning. diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index e1b8e0f53..5364f446f 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -610,7 +610,7 @@ void TransferListWidget::openSelectedTorrentsFolder() const void TransferListWidget::previewSelectedTorrents() { - const int FILE_COUNT_THRESHOLD = 100; + const int FILE_COUNT_THRESHOLD = 20; for (const BitTorrent::Torrent *torrent : asConst(getSelectedTorrents())) { @@ -622,7 +622,7 @@ void TransferListWidget::previewSelectedTorrents() } const int fileCount = torrent->filesCount(); - if (fileCount > FILE_COUNT_THRESHOLD) + if (fileCount >= FILE_COUNT_THRESHOLD) { QMessageBox::StandardButton reply = QMessageBox::question(this, tr("Preview confirmation"), tr("The torrent \"%1\" has a large number of files (%2). Previewing may take a long time. Do you want to continue?")