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