Commit e0950bdd authored by Erwan Tulou's avatar Erwan Tulou

skins2: add config_SaveConfigFile to retain changes across sessions

(cherry picked from commit f239f6fb)
parent 6d28f6de
...@@ -307,6 +307,9 @@ static void Run( intf_thread_t *p_intf ) ...@@ -307,6 +307,9 @@ static void Run( intf_thread_t *p_intf )
// cannot be called in "Close", because it refcounts skins2 // cannot be called in "Close", because it refcounts skins2
Dialogs::destroy( p_intf ); Dialogs::destroy( p_intf );
// save config file
config_SaveConfigFile( p_intf, NULL );
vlc_restorecancel(canc); vlc_restorecancel(canc);
} }
...@@ -509,9 +512,11 @@ vlc_module_begin () ...@@ -509,9 +512,11 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INTERFACE_MAIN ) set_subcategory( SUBCAT_INTERFACE_MAIN )
add_file( "skins2-last", "", NULL, SKINS2_LAST, SKINS2_LAST_LONG, add_file( "skins2-last", "", NULL, SKINS2_LAST, SKINS2_LAST_LONG,
true ) true )
change_safe ()
change_autosave () change_autosave ()
add_string( "skins2-config", "", NULL, SKINS2_CONFIG, SKINS2_CONFIG_LONG, add_string( "skins2-config", "", NULL, SKINS2_CONFIG, SKINS2_CONFIG_LONG,
true ) true )
change_safe ()
change_autosave () change_autosave ()
change_internal () change_internal ()
#ifdef WIN32 #ifdef WIN32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment