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 -1
View File
@@ -175,7 +175,10 @@ UnitStatDlg::UnitStatDlg(QWidget *parent) : BufferedDrawDlg(parent), ui(new Ui::
ui->conscriptsBtn->setToolTip(phrase(QStringLiteral("BTN_ALLOWCONSCRIPTS")));
}
};
ui->helpBtn->onClick = [this] { Help::showNewContent(WindowMode::Persistent, Help::LinkCategory::Model, 0); };
ui->helpBtn->onClick = [this] {
if (auto *dlg = Term::mainScreenHelpDlg())
dlg->showNewContent(WindowMode::Persistent, Help::LinkCategory::Model, 0);
};
UnitStat::showNewContentOwnModel = [this](WindowMode newMode, int mix) { this->showNewContentOwnModel(newMode, mix); };
UnitStat::showNewContentEnemyModel = [this](WindowMode newMode, int emix) {