QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be updated, keeping old version.","%1 is the name of the search engine").arg(plugin_name));
return;
}else{
// Remove broken file
QFile::remove(dest_path);
misc::safeRemove(dest_path);
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name));
return;
}
}
// Install was successful, remove backup
if(update){
QFile::remove(dest_path+".bak");
misc::safeRemove(dest_path+".bak");
}
if(update){
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name));