Qt: move TTY option to TTY tab (#9147)

This commit is contained in:
Megamouse 2020-10-27 03:47:07 +01:00 committed by GitHub
commit 8ce0eaa9d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,7 +294,7 @@ void log_frame::CreateAndConnectActions()
m_stack_log = checked; m_stack_log = checked;
}); });
m_TTYAct = new QAction(tr("TTY"), this); m_TTYAct = new QAction(tr("Enable TTY"), this);
m_TTYAct->setCheckable(true); m_TTYAct->setCheckable(true);
connect(m_TTYAct, &QAction::triggered, [this](bool checked) connect(m_TTYAct, &QAction::triggered, [this](bool checked)
{ {
@ -318,8 +318,6 @@ void log_frame::CreateAndConnectActions()
menu->addActions(m_logLevels->actions()); menu->addActions(m_logLevels->actions());
menu->addSeparator(); menu->addSeparator();
menu->addAction(m_stackAct_log); menu->addAction(m_stackAct_log);
menu->addSeparator();
menu->addAction(m_TTYAct);
menu->exec(m_log->viewport()->mapToGlobal(pos)); menu->exec(m_log->viewport()->mapToGlobal(pos));
}); });
@ -328,6 +326,7 @@ void log_frame::CreateAndConnectActions()
QMenu* menu = m_tty->createStandardContextMenu(); QMenu* menu = m_tty->createStandardContextMenu();
menu->addAction(m_clearTTYAct); menu->addAction(m_clearTTYAct);
menu->addSeparator(); menu->addSeparator();
menu->addAction(m_TTYAct);
menu->addAction(m_stackAct_tty); menu->addAction(m_stackAct_tty);
menu->addSeparator(); menu->addSeparator();
menu->addActions(m_tty_channel_acts->actions()); menu->addActions(m_tty_channel_acts->actions());