make map size customizable in star dialog

This commit is contained in:
Geoffray Levasseur committed 2026-11-09 12:18:42 +01:00
1 parent 8606bf8bcc
commit a564d06798
3 files changed
+17 -5

No files matched your search

+2 -3
View File
@@ -354,10 +354,9 @@ void EnhanceDlg::keyPressEvent(QKeyEvent *event)
{
const QKeySequence pressed(event->key() | event->modifiers());
if (KeyBindings::bHelp && pressed.matches(KeyBindings::bHelp->shortCut) == QKeySequence::ExactMatch) {
// TODO: needs a live HelpDlg instance's textIndex() (Term.pas's
// MainScreen.HelpDlg isn't ported yet) - placeholder text index.
if (auto *dlg = Term::mainScreenHelpDlg())
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Text, 0);
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Text,
dlg->textIndex(QStringLiteral("MACRO")));
} else
FramedDlg::keyPressEvent(event);
}