diff --git a/src/ui/screens/torrentproperties/torrentfilesmodel.cpp b/src/ui/screens/torrentproperties/torrentfilesmodel.cpp index 51554a66..1604cbd9 100644 --- a/src/ui/screens/torrentproperties/torrentfilesmodel.cpp +++ b/src/ui/screens/torrentproperties/torrentfilesmodel.cpp @@ -142,10 +142,12 @@ namespace tremotesf { } void TorrentFilesModel::update(std::span changed) { + if (mFiles.size() != mTorrent->files().size()) { + mCoroutineScope.launch(createTree()); + return; + } if (mLoaded) { updateTree(changed); - } else { - mCoroutineScope.launch(createTree()); } }