added makefile option to disable skininstaller

This commit is contained in:
louis 2016-03-20 13:05:06 +01:00
parent 1d6c2566bc
commit 3af04d6b1a
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,8 @@
# $Id$ Makefile 1.0 2014/07/24 louis Exp $ # $Id$ Makefile 1.0 2014/07/24 louis Exp $
# Config # 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. # The official name of this plugin.
PLUGIN = skindesigner PLUGIN = skindesigner

View File

@ -360,6 +360,7 @@ void cSkinDesignerSetup::SkinSetup(void) {
} }
void cSkinDesignerSetup::InstallSkins(void) { void cSkinDesignerSetup::InstallSkins(void) {
#ifdef USE_SKININSTALLER
Add(InfoItem(tr("Install new skins"))); Add(InfoItem(tr("Install new skins")));
config.InitSkinRepoIterator(); config.InitSkinRepoIterator();
@ -369,6 +370,7 @@ void cSkinDesignerSetup::InstallSkins(void) {
continue; continue;
Add(new cSkinMenuItem(repo->Name(), *cString::sprintf("%s %s", tr("Preview Skin"), repo->Name().c_str()), itSkinRepo)); Add(new cSkinMenuItem(repo->Name(), *cString::sprintf("%s %s", tr("Preview Skin"), repo->Name().c_str()), itSkinRepo));
} }
#endif
} }
// --- cSkinMenuItem ----------------------------------------------------------- // --- cSkinMenuItem -----------------------------------------------------------