Don't use extra variable to distinguish restored torrents

PR #17984.
This commit is contained in:
Vladimir Golovnev
2022-11-06 14:24:49 +03:00
committed by GitHub
parent 6a560016dd
commit c80238d66f
4 changed files with 2 additions and 6 deletions

View File

@@ -210,7 +210,6 @@ BitTorrent::LoadResumeDataResult BitTorrent::BencodeResumeDataStorage::loadTorre
return nonstd::make_unexpected(tr("Cannot parse resume data: invalid format"));
LoadTorrentParams torrentParams;
torrentParams.restored = true;
torrentParams.category = fromLTString(resumeDataRoot.dict_find_string_value("qBt-category"));
torrentParams.name = fromLTString(resumeDataRoot.dict_find_string_value("qBt-name"));
torrentParams.hasSeedStatus = resumeDataRoot.dict_find_int_value("qBt-seedStatus");