mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix corruption: torrentVerify on completion (#4178)
* torrentVerify on completion * Make torrent verify on completion configurable via settings * code review: replacing tr_verify_complete_mode with bool * code review: sorting torrent_complete_verify_enabled with bool * Update Application.cc * code review: avoiding `session->onTorrentCompletenessChanged` before verification completion
This commit is contained in:
@@ -1359,6 +1359,10 @@ void Application::Impl::on_prefs_changed(tr_quark const key)
|
||||
tr_sessionSetDeleteSource(tr, gtr_pref_flag_get(key));
|
||||
break;
|
||||
|
||||
case TR_KEY_torrent_complete_verify_enabled:
|
||||
tr_sessionSetCompleteVerifyEnabled(tr, gtr_pref_flag_get(key));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user