chore: backport recently active fixes (#6565)

* fix: mark torrent as changed when setting location (#6355)

(cherry picked from commit 7fa318c283)

* fix: mark torrent as changed when stopping (#6405)

(cherry picked from commit 7c9e04d035)
This commit is contained in:
Yat Ho
2024-02-04 12:14:10 +08:00
committed by GitHub
parent 389adc6a2f
commit e45b99ca4e

View File

@@ -862,6 +862,7 @@ void torrentStop(tr_torrent* const tor)
tor->isRunning = false;
tor->isStopping = false;
tor->markChanged();
if (!tor->session->isClosing())
{
@@ -2400,6 +2401,7 @@ void tr_torrent::setDownloadDir(std::string_view path, bool is_new_torrent)
{
download_dir = path;
markEdited();
markChanged();
setDirty();
refreshCurrentDir();