improve help implementation

This commit is contained in:
Geoffray Levasseur committed 2026-11-07 13:25:21 +01:00
1 parent 2dcc63875d
commit 9ef24e3a9e
10 files changed
+52 -26

No files matched your search

+4 -3
View File
@@ -72,9 +72,10 @@ MessgExDlg::MessgExDlg(QWidget *parent) : BaseMessgDlg(parent), ui(new Ui::Messg
close();
};
ui->button2->onClick = [this] {
if (kind == MessageKind::OkHelp)
Help::showNewContent(WindowMode::Submodal, helpKind, helpNo);
else if (kind == MessageKind::Model)
if (kind == MessageKind::OkHelp) {
if (auto *dlg = Term::mainScreenHelpDlg())
dlg->showNewContent(WindowMode::Submodal, helpKind, helpNo);
} else if (kind == MessageKind::Model)
UnitStat::showNewContentOwnModel(WindowMode::Submodal, iconIndex);
else {
setModalResult(Dpi::ModalResult::Ignore);