forked from qt-creator/qt-creator
Terminal: Update on open/close the Terminal pane registration
Amends f95bd6119a
Change-Id: Ie20d73ad9d87c5b244c768a28f3a7bd71fdd272c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -290,15 +290,14 @@ void TerminalPane::clearContents()
|
||||
|
||||
void TerminalPane::visibilityChanged(bool visible)
|
||||
{
|
||||
Q_UNUSED(visible);
|
||||
if (visible)
|
||||
TerminalCommands::instance().registerOpenCloseTerminalPaneCommand();
|
||||
}
|
||||
|
||||
void TerminalPane::setFocus()
|
||||
{
|
||||
if (const auto t = currentTerminal())
|
||||
t->setFocus();
|
||||
|
||||
TerminalCommands::instance().registerOpenCloseTerminalPaneCommand();
|
||||
}
|
||||
|
||||
bool TerminalPane::hasFocus() const
|
||||
|
||||
Reference in New Issue
Block a user