if( pOldTheme )
{
+ pOldTheme->getWindowManager().saveVisibility();
pOldTheme->getWindowManager().hideAll();
}
if( loader.load( m_file ) )
{
// Everything went well
- msg_Dbg( getIntf(), "New theme successfully loaded (%s)",
+ msg_Info( getIntf(), "new theme successfully loaded (%s)",
m_file.c_str() );
if( pOldTheme )
{
}
else if( pOldTheme )
{
- msg_Err( getIntf(), "A problem occurred when loading the new theme,"
+ msg_Warn( getIntf(), "a problem occurred when loading the new theme,"
" restoring the previous one" );
getIntf()->p_sys->p_theme = pOldTheme;
- pOldTheme->getWindowManager().showAll();
+ pOldTheme->getWindowManager().restoreVisibility();
}
else
{
- msg_Err( getIntf(), "Cannot load the theme, aborting" );
+ msg_Err( getIntf(), "cannot load the theme, aborting" );
// Quit
CmdQuit cmd( getIntf() );
cmd.execute();