Update AppDelegate.cpp

d