Skip to content

Commit

Permalink
[feat] global: add support message at closing
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Jun 17, 2022
1 parent ca6a391 commit ca4caef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ void MainWindow::closeEvent(QCloseEvent *event) {
msgBox.setDefaultButton(minimizeButton);
int reply = msgBox.exec();
if (reply == QMessageBox::Yes) {
QMessageBox msgSupport(this);
msgSupport.setTextFormat(Qt::RichText);
msgSupport.setWindowTitle(tr("Support"));
msgSupport.setText(tr("Don't forget that you can become a FastTrack supporter <a href='https://ko-fi.com/bgallois'>there</a>!"));
msgSupport.setIcon(QMessageBox::Information);
msgSupport.exec();
// msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
settingsFile->setValue(QStringLiteral("geometry"), saveGeometry());
event->accept();
}
Expand Down

0 comments on commit ca4caef

Please sign in to comment.