mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
parent
69af205094
commit
2227c3afc1
2 changed files with 15 additions and 0 deletions
|
@ -289,9 +289,11 @@ window.addEvent('load', function () {
|
|||
onSuccess : function (response) {
|
||||
$('error_div').set('html', '');
|
||||
if (response) {
|
||||
var torrentsTableSelectedRows;
|
||||
var update_categories = false;
|
||||
var full_update = (response['full_update'] === true);
|
||||
if (full_update) {
|
||||
torrentsTableSelectedRows = torrentsTable.selectedRowsIds();
|
||||
torrentsTable.clear();
|
||||
category_list = {};
|
||||
}
|
||||
|
@ -348,6 +350,10 @@ window.addEvent('load', function () {
|
|||
updateCategoryList();
|
||||
torrentsTableContextMenu.updateCategoriesSubMenu(category_list);
|
||||
}
|
||||
|
||||
if (full_update)
|
||||
// re-select previously selected rows
|
||||
torrentsTable.reselectRows(torrentsTableSelectedRows);
|
||||
}
|
||||
clearTimeout(syncMainDataTimer);
|
||||
syncMainDataTimer = syncMainData.delay(syncMainDataTimerPeriod);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue