mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 01:01:25 +03:00
Terminal status bar now is a Tab Widget and can create any number of terminals.
Fix a bug when initializing the LSP that provoked to not correctly send the initial commands. Added `expand-text` to UIPushButton. Added `setAcceptsDropOfWidgetFn` to externally control which widgets are accepted as droppable in UITabWidget. Improved draw invalidation in UIStackWidget.
This commit is contained in:
@@ -852,10 +852,17 @@ void ProjectBuildManager::runConfig( StatusAppOutputController* saoc ) {
|
||||
auto cmd = finalBuild.cmd + ( !finalBuild.args.empty() ? ( " " + finalBuild.args ) : "" );
|
||||
if ( finalBuild.runInTerminal ) {
|
||||
if ( finalBuild.useStatusBarTerminal && mApp->getStatusTerminalController() ) {
|
||||
mApp->getStatusTerminalController()->show();
|
||||
auto term = mApp->getStatusTerminalController()->getUITerminal();
|
||||
term->restart();
|
||||
term->executeFile( cmd );
|
||||
auto stc = mApp->getStatusTerminalController();
|
||||
stc->show();
|
||||
if ( finalBuild.reusePreviousTerminal ) {
|
||||
stc->getTabWidget()->setTabSelected( (Uint32)0 );
|
||||
auto term = stc->getUITerminal();
|
||||
term->restart();
|
||||
term->executeFile( cmd );
|
||||
} else if ( stc->getTabWidget()->getTabCount() ) {
|
||||
auto term = stc->createTerminal();
|
||||
term->executeFile( cmd );
|
||||
}
|
||||
} else {
|
||||
bool mustReuseLastUsedTerm =
|
||||
finalBuild.reusePreviousTerminal && mLastUsedTerm &&
|
||||
|
||||
Reference in New Issue
Block a user