ecode: Fix build button incorrect state.

This commit is contained in:
Martín Lucas Golini
2023-08-01 00:23:48 -03:00
parent 9814f25696
commit 3e4ae1b1da
2 changed files with 5 additions and 5 deletions

View File

@@ -859,7 +859,7 @@ void ProjectBuildManager::buildSidePanelTab() {
UIIcon* icon = mUISceneNode->findIcon( "symbol-property" );
UIWidget* node = mUISceneNode->loadLayoutFromString(
R"html(
<ScrollView id="build_tab" lw="mp" lh="mp">
<ScrollView id="build_tab_view" lw="mp" lh="mp">
<vbox lw="mp" lh="wc" padding="4dp">
<TextView text="@string(build_settings, Build Settings)" font-size="15dp" />
<TextView text="@string(build_configuration, Build Configuration)" />
@@ -886,7 +886,7 @@ void ProjectBuildManager::buildSidePanelTab() {
void ProjectBuildManager::updateSidePanelTab() {
if ( mTab == nullptr )
return;
UIWidget* buildTab = mTab->getOwnedWidget()->find<UIWidget>( "build_tab" );
UIWidget* buildTab = mTab->getOwnedWidget()->find<UIWidget>( "build_tab_view" );
if ( buildTab == nullptr )
return;
UIDropDownList* buildList = buildTab->find<UIDropDownList>( "build_list" );
@@ -970,7 +970,7 @@ void ProjectBuildManager::updateSidePanelTab() {
void ProjectBuildManager::updateBuildType() {
if ( mTab == nullptr )
return;
UIWidget* buildTab = mTab->getOwnedWidget()->find<UIWidget>( "build_tab" );
UIWidget* buildTab = mTab->getOwnedWidget()->find<UIWidget>( "build_tab_view" );
if ( buildTab == nullptr )
return;
UIDropDownList* buildList = buildTab->find<UIDropDownList>( "build_list" );

View File

@@ -73,7 +73,7 @@ static std::string getProjectOutputParserTypeToString( const ProjectOutputParser
UIPushButton* StatusBuildOutputController::getBuildButton( App* app ) {
if ( app->getSidePanel() ) {
UIWidget* tab = app->getSidePanel()->find<UIWidget>( "build_tab" );
UIWidget* tab = app->getSidePanel()->find<UIWidget>( "build_tab_view" );
if ( tab )
return tab->find<UIPushButton>( "build_button" );
}
@@ -82,7 +82,7 @@ UIPushButton* StatusBuildOutputController::getBuildButton( App* app ) {
UIPushButton* StatusBuildOutputController::getCleanButton( App* app ) {
if ( app->getSidePanel() ) {
UIWidget* tab = app->getSidePanel()->find<UIWidget>( "build_tab" );
UIWidget* tab = app->getSidePanel()->find<UIWidget>( "build_tab_view" );
if ( tab )
return tab->find<UIPushButton>( "clean_button" );
}