// Get config from vlcrc file
char *save = config_GetPsz( getIntf(), "skins2-config" );
- if( save == NULL )
+ if( !save ) return;
+
+ // Is there an existing config?
+ if( !strcmp( save, "" ) )
+ {
+ // Show the windows
+ m_windowManager.showAll();
return;
+ }
// Initialization
map<string, TopWindowPtr>::const_iterator it;
// Next window
i++;
}
+ free( save );
}
// Save config to file
config_PutPsz( getIntf(), "skins2-config", save );
- config_SaveConfigFile( getIntf(), "skins2" );
// Free memory
delete[] save;