diff options
author | Saturneric <[email protected]> | 2021-12-05 08:13:11 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-05 08:16:12 +0000 |
commit | c5bf73755506867295241dc05d7ef5837157ffa3 (patch) | |
tree | dbc87159fe807f584a180c44c69913465f803023 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | Merge branch 'main' into develop (diff) | |
download | GpgFrontend-c5bf73755506867295241dc05d7ef5837157ffa3.tar.gz GpgFrontend-c5bf73755506867295241dc05d7ef5837157ffa3.zip |
Remove rapidjson and Improve update ploicy.
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 205b9440..f1432196 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -91,7 +91,7 @@ void MainWindow::slotEncrypt() { auto resultAnalyse = EncryptResultAnalyse(error, std::move(result)); resultAnalyse.analyse(); process_result_analyse(edit, infoBoard, resultAnalyse); - + if (check_gpg_error_2_err_code(error) == GPG_ERR_NO_ERROR) edit->slotFillTextEditWithText(QString::fromStdString(*tmp)); #ifdef SMTP_SUPPORT @@ -538,15 +538,12 @@ void MainWindow::slotOpenFile(QString& path) { edit->slotOpenFile(path); } void MainWindow::slotVersionUpgrade(const QString& currentVersion, const QString& latestVersion) { + LOG(INFO) << _("called"); if (currentVersion < latestVersion) { - QMessageBox::warning( - this, _("Outdated Version"), - QString(_("This version(%1) is out of date, please update " - "the latest version in time. ")) - .arg(currentVersion) + - QString(_("You can download the latest version(%1) on " - "Github Releases Page.<br/>")) - .arg(latestVersion)); + statusBar()->showMessage( + QString(_("GpgFrontend Upgradeable (New Version: %1).")) + .arg(latestVersion), + 30000); } else if (currentVersion > latestVersion) { QMessageBox::warning( this, _("Unreleased Version"), |