QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("A more recent version of %1 search engine plugin is already installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
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.toUtf8().data()));
continue;
return;
}else{
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
}else{
QMessageBox::information(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("%1 search plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, update server is temporarily unavailable."));
return;
}
if(url.endsWith(".zip")){
if(url.endsWith(".zip")||url.endsWith(".py")){
// a plugin update download has been failed
QStringplugin_name=url.split('/').last();
plugin_name.replace(".zip","");
plugin_name.replace(".py","");
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin update failed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
@ -65,6 +66,9 @@ class engineSelectDlg : public QDialog, public Ui::engineSelect{
@@ -65,6 +66,9 @@ class engineSelectDlg : public QDialog, public Ui::engineSelect{