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

This commit is contained in:
Yat Ho 2023-12-08 23:38:57 +08:00 committed by GitHub
parent 4506d20136
commit 7fa318c283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2245,6 +2245,7 @@ size_t tr_torrentFindFileToBuf(tr_torrent const* tor, tr_file_index_t file_num,
void tr_torrent::set_download_dir(std::string_view path, bool is_new_torrent)
{
download_dir_ = path;
mark_changed();
mark_edited();
set_dirty();
refresh_current_dir();