From 744efdd79f7bae6ad3204ea7b06e382df59d7636 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 5 Mar 2021 16:25:26 +0100 Subject: Add cNopacityConfig::.Init() In Init() all necessary functions are collected in order to properly initialize the skin. These functions can then be made private in this class. This can also simplify cNopacity::ReloadCaches(). --- nopacity.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nopacity.c') diff --git a/nopacity.c b/nopacity.c index cbe2841..eb0e650 100644 --- a/nopacity.c +++ b/nopacity.c @@ -66,10 +66,7 @@ cSkinDisplayMessage *cNopacity::DisplayMessage(void) { void cNopacity::ReloadCaches(void) { if (geoManager->SetOSDSize() || imgCache->ThemeChanged()) { int start = cTimeMs::Now(); - config.LoadDefaults(); - config.SetThemeSpecificDefaults(); - config.SetThemeSetup(); - config.SetFontName(); + config.Init(); geoManager->SetGeometry(); delete fontManager; fontManager = new cFontManager(); -- cgit v1.2.3