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:
Cristian Adam
2023-03-24 11:46:40 +01:00
parent b4bc5f6e1b
commit 3b6e59ab91

View File

@@ -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