Skip to content

Commit

Permalink
Added help button to reset messages function.
Browse files Browse the repository at this point in the history
  • Loading branch information
albar965 committed Jul 3, 2024
1 parent f06e1ae commit b194486
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3244,14 +3244,18 @@ void MainWindow::removeDialogFromDockHandler(QDialog *dialogWidget)

void MainWindow::resetMessages()
{
if(dialog->question(tr("This causes all message dialogs that were deactivated with the\n"
"\"Do not show again\"\n"
"button to be displayed again.\n\n"
"Reset all messages to show up again now?")) == QMessageBox::Yes)
QMessageBox::StandardButton result = dialog->question(tr("This causes all message dialogs that were deactivated with the\n"
"\"Do not show again\"\n"
"button to be displayed again.\n\n"
"Reset all messages to show up again now?"),
QMessageBox::Yes | QMessageBox::No | QMessageBox::Help);
if(result == QMessageBox::Yes)
{
messages::resetAllMessages();
setStatusMessage(tr("All message dialogs reset."));
}
else if(result == QMessageBox::Help)
atools::gui::HelpHandler::openHelpUrlWeb(this, lnm::helpOnlineUrl % "MENUS.html#reset-all-messages", lnm::helpLanguageOnline());
}

void MainWindow::setStatusMessage(const QString& message, bool addToLog, bool popup)
Expand Down

0 comments on commit b194486

Please sign in to comment.