improve help implementation
This commit is contained in:
1 parent
2dcc63875d
commit
9ef24e3a9e
10 files changed
+52
-26
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user