From 3af04d6b1a2404fa1dba23efbfb9e0505b0146a3 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 20 Mar 2016 13:05:06 +0100 Subject: [PATCH] added makefile option to disable skininstaller --- Makefile | 3 ++- setup.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b7ac9d0..807a054 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ # $Id$ Makefile 1.0 2014/07/24 louis Exp $ # Config -CONFIG := #-DDOPROFILE # enable profiling code +CONFIG := #-DDOPROFILE # enable profiling code +CONFIG += -DUSE_SKININSTALLER # use skin installer in skindesigner setup # The official name of this plugin. PLUGIN = skindesigner diff --git a/setup.c b/setup.c index 4eecf69..813d03a 100644 --- a/setup.c +++ b/setup.c @@ -360,6 +360,7 @@ void cSkinDesignerSetup::SkinSetup(void) { } void cSkinDesignerSetup::InstallSkins(void) { +#ifdef USE_SKININSTALLER Add(InfoItem(tr("Install new skins"))); config.InitSkinRepoIterator(); @@ -369,6 +370,7 @@ void cSkinDesignerSetup::InstallSkins(void) { continue; Add(new cSkinMenuItem(repo->Name(), *cString::sprintf("%s %s", tr("Preview Skin"), repo->Name().c_str()), itSkinRepo)); } +#endif } // --- cSkinMenuItem -----------------------------------------------------------