mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
commit
a217d97fda
@ -1426,8 +1426,8 @@ void MainWindow::handleUpdateCheckFinished(bool update_available, QString new_ve
|
|||||||
{
|
{
|
||||||
QMessageBox::StandardButton answer = QMessageBox::Yes;
|
QMessageBox::StandardButton answer = QMessageBox::Yes;
|
||||||
if (update_available) {
|
if (update_available) {
|
||||||
answer = QMessageBox::question(this, tr("A new version is available"),
|
answer = QMessageBox::question(this, tr("Update Available"),
|
||||||
tr("A new version of qBittorrent is available on Sourceforge.\nWould you like to update qBittorrent to version %1?").arg(new_version),
|
tr("A new version is available.\nUpdate to version %1?").arg(new_version),
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
||||||
if (answer == QMessageBox::Yes) {
|
if (answer == QMessageBox::Yes) {
|
||||||
// The user want to update, let's download the update
|
// The user want to update, let's download the update
|
||||||
@ -1436,12 +1436,12 @@ void MainWindow::handleUpdateCheckFinished(bool update_available, QString new_ve
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (invokedByUser) {
|
else if (invokedByUser) {
|
||||||
QMessageBox::information(this, tr("There isn't a new version available"),
|
QMessageBox::information(this, tr("Already Using the Latest Version"),
|
||||||
tr("There isn't a new version of qBittorrent available on Sourceforge"));
|
tr("No updates available.\nYou are already using the latest version."));
|
||||||
}
|
}
|
||||||
sender()->deleteLater();
|
sender()->deleteLater();
|
||||||
actionCheck_for_updates->setEnabled(true);
|
actionCheck_for_updates->setEnabled(true);
|
||||||
actionCheck_for_updates->setText(tr("Check for updates"));
|
actionCheck_for_updates->setText(tr("&Check for Updates"));
|
||||||
actionCheck_for_updates->setToolTip(tr("Check for program updates"));
|
actionCheck_for_updates->setToolTip(tr("Check for program updates"));
|
||||||
// Don't bother the user again in this session if he chose to ignore the update
|
// Don't bother the user again in this session if he chose to ignore the update
|
||||||
if (Preferences::instance()->isUpdateCheckEnabled() && answer == QMessageBox::Yes)
|
if (Preferences::instance()->isUpdateCheckEnabled() && answer == QMessageBox::Yes)
|
||||||
@ -1539,7 +1539,7 @@ void MainWindow::checkProgramUpdate()
|
|||||||
{
|
{
|
||||||
programUpdateTimer.stop(); // If the user had clicked the menu item
|
programUpdateTimer.stop(); // If the user had clicked the menu item
|
||||||
actionCheck_for_updates->setEnabled(false);
|
actionCheck_for_updates->setEnabled(false);
|
||||||
actionCheck_for_updates->setText(tr("Checking for updates..."));
|
actionCheck_for_updates->setText(tr("Checking for Updates..."));
|
||||||
actionCheck_for_updates->setToolTip(tr("Already checking for program updates in the background"));
|
actionCheck_for_updates->setToolTip(tr("Already checking for program updates in the background"));
|
||||||
bool invokedByUser = actionCheck_for_updates == qobject_cast<QAction*>(sender());
|
bool invokedByUser = actionCheck_for_updates == qobject_cast<QAction*>(sender());
|
||||||
ProgramUpdater *updater = new ProgramUpdater(this, invokedByUser);
|
ProgramUpdater *updater = new ProgramUpdater(this, invokedByUser);
|
||||||
|
Loading…
Reference in New Issue
Block a user