aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowSlotFunction.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-05 11:31:51 +0000
committerGitHub <[email protected]>2021-12-05 11:31:51 +0000
commit033362e312c586ad3eaf0d6b3631241f908496ff (patch)
tree9bab1796b919db2c0fa88e83b183a5a5c7583fcc /src/ui/main_window/MainWindowSlotFunction.cpp
parentMerge pull request #25 from saturneric/develop (diff)
parentMerge branch 'main' into develop (diff)
downloadGpgFrontend-033362e312c586ad3eaf0d6b3631241f908496ff.tar.gz
GpgFrontend-033362e312c586ad3eaf0d6b3631241f908496ff.zip
Merge pull request #26 from saturneric/develop
Develop Fixed For Version 2.0.1.
Diffstat (limited to '')
-rw-r--r--src/ui/main_window/MainWindowSlotFunction.cpp15
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"),