Remove unnecessary UpdateFile.
GitOrigin-RevId: 06a7365eb01793df4ed04f2cf111582d9be7d17f
This commit is contained in:
parent
ce8781a2aa
commit
bc6517b094
@ -243,7 +243,7 @@ void FileNode::set_download_priority(int8 priority) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FileNode::set_upload_priority(int8 priority) {
|
void FileNode::set_upload_priority(int8 priority) {
|
||||||
if ((upload_priority_ == 0) != (priority == 0)) {
|
if (remote_.type() != RemoteFileLocation::Type::Full && (upload_priority_ == 0) != (priority == 0)) {
|
||||||
VLOG(update_file) << "File " << main_file_id_ << " has changed upload priority to " << priority;
|
VLOG(update_file) << "File " << main_file_id_ << " has changed upload priority to " << priority;
|
||||||
on_info_changed();
|
on_info_changed();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user