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

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) void tr_torrent::set_download_dir(std::string_view path, bool is_new_torrent)
{ {
download_dir_ = path; download_dir_ = path;
mark_changed();
mark_edited(); mark_edited();
set_dirty(); set_dirty();
refresh_current_dir(); refresh_current_dir();