Use task_set_title

This commit is contained in:
twinaphex 2017-01-23 13:29:34 +01:00
parent c867784898
commit 83b1bbe247
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ bool task_push_decompress(
snprintf(tmp, sizeof(tmp), "%s '%s'",
msg_hash_to_str(MSG_EXTRACTING), path_basename(source_file));
t->title = strdup(tmp);
task_set_title(t, strdup(tmp));
task_queue_ctl(TASK_QUEUE_CTL_PUSH, t);

View File

@ -293,7 +293,7 @@ void *task_push_http_transfer(const char *url, bool mute, const char *type,
snprintf(tmp, sizeof(tmp), "%s '%s'",
msg_hash_to_str(MSG_DOWNLOADING), path_basename(url));
t->title = strdup(tmp);
task_set_title(t, tmp);
task_queue_ctl(TASK_QUEUE_CTL_PUSH, t);