void AboutConstruction::_resolveToggleWorking() { WorkingBuildingPtr working = base().as<WorkingBuilding>(); if( working.isValid() ) { working->setActive( !working->isActive() ); _setWorkingActive( working->isActive() ); } }
void AboutConstruction::_updateWorkingText() { WorkingBuildingPtr working = base().as<WorkingBuilding>(); _setWorkingActive( working.isValid() ? working->isActive() : false ); }