Use #ifdef instead of comment

This commit is contained in:
David Rowe 2017-03-18 12:56:34 +13:00
parent 38bb48e72c
commit ab7d82edb6

View file

@ -418,7 +418,8 @@ Menu::Menu() {
// Developer > Assets >>> // Developer > Assets >>>
// Menu item is not currently needed but code should be kept in case it proves useful again at some stage. // Menu item is not currently needed but code should be kept in case it proves useful again at some stage.
/* //#define WANT_ASSET_MIGRATION
#ifdef WANT_ASSET_MIGRATION
MenuWrapper* assetDeveloperMenu = developerMenu->addMenu("Assets"); MenuWrapper* assetDeveloperMenu = developerMenu->addMenu("Assets");
auto& atpMigrator = ATPAssetMigrator::getInstance(); auto& atpMigrator = ATPAssetMigrator::getInstance();
atpMigrator.setDialogParent(this); atpMigrator.setDialogParent(this);
@ -426,7 +427,7 @@ Menu::Menu() {
addActionToQMenuAndActionHash(assetDeveloperMenu, MenuOption::AssetMigration, addActionToQMenuAndActionHash(assetDeveloperMenu, MenuOption::AssetMigration,
0, &atpMigrator, 0, &atpMigrator,
SLOT(loadEntityServerFile())); SLOT(loadEntityServerFile()));
*/ #endif
// Developer > Avatar >>> // Developer > Avatar >>>
MenuWrapper* avatarDebugMenu = developerMenu->addMenu("Avatar"); MenuWrapper* avatarDebugMenu = developerMenu->addMenu("Avatar");