Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Add popup with deprecation information
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Nov 4, 2022
1 parent ca6db45 commit aac3434
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,23 @@ void MainWindow::changeStartSetNumber(unsigned int startSetNumber, unsigned int
}

void MainWindow::updateButtonPressed() {
QMessageBox *box = new QMessageBox(this);
box->setText(
tr("AntiMicro is no longer maintained anymore, it won't get any new "
"features or bug fixes. This is the last release of AntiMicro.\nIt is "
"recommended to migrate to new, currently developed version of this "
"app called AntiMicroX. It contains a lot of bug fixes and new "
"features like: showing battery status, mapping gamepad moves with "
"gyroscope, proper calibration and many more...\nPress Open to to open "
"AntiMicroX website."));
box->setWindowTitle(tr("Deprecation Notice"));
box->setStandardButtons(QMessageBox::Cancel | QMessageBox::Open);
int ret = box->exec();
if (ret == QMessageBox::Open) {
qInfo() << "Opening antimicrox website";
QDesktopServices::openUrl(QUrl("https://github.com/antiMicroX/antimicrox/"));
QDesktopServices::openUrl(
QUrl("https://github.com/antiMicroX/antimicrox/"));
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ QPushButton#namesPushButton[isDisplayingNames=&quot;true&quot;] {
<item>
<widget class="QPushButton" name="updateButton">
<property name="text">
<string>Antimicro is no longer maintained and won't receive any more updates.
Click here to get AntimicroX, an updated fork of this app.</string>
<string>AntiMicro is no longer maintained and won't receive any more updates.
Click here to get AntiMicroX, an updated fork of this app.</string>
</property>
<property name="icon">
<iconset theme="dialog-warning"/>
Expand Down

0 comments on commit aac3434

Please sign in to comment.