ecode: Added Terminal menu.

This commit is contained in:
Martín Lucas Golini
2022-09-12 01:38:11 -03:00
parent db57f39ae3
commit 19e2aba3ba
8 changed files with 110 additions and 6 deletions

View File

@@ -298,8 +298,10 @@ UITerminal* TerminalManager::createNewTerminal( const std::string& title, UITabW
mApp->getSplitter()->splitterFromWidget( mApp->getSplitter()->getCurWidget() ) )
splitter->swap();
} );
term->setCommand( UITerminal::getExclusiveModeToggleCommandName(),
[term] { term->setExclusiveMode( !term->getExclusiveMode() ); } );
term->setCommand( UITerminal::getExclusiveModeToggleCommandName(), [term, this] {
term->setExclusiveMode( !term->getExclusiveMode() );
mApp->updateTerminalMenu();
} );
term->setCommand( "create-new-terminal", [&] { createNewTerminal(); } );
term->setCommand( "terminal-rename", [&, term] {
UIMessageBox* msgBox = UIMessageBox::New(