Update config.cpp

added class state