]> git.sesse.net Git - vlc/commitdiff
skins2: add config_SaveConfigFile to retain changes across sessions
authorErwan Tulou <erwan10@videolan.org>
Tue, 16 Jun 2009 10:37:58 +0000 (12:37 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 16 Jun 2009 10:43:50 +0000 (12:43 +0200)
modules/gui/skins2/src/skin_main.cpp

index fef92fc3e5d7edac6f13c408c934b533208f17ba..f2f2c91856774fc7adc992ecaa74109c7edf17cd 100644 (file)
@@ -307,6 +307,9 @@ static void Run( intf_thread_t *p_intf )
     // cannot be called in "Close", because it refcounts skins2
     Dialogs::destroy( p_intf );
 
+    // save config file
+    config_SaveConfigFile( p_intf, NULL );
+
     vlc_restorecancel(canc);
 }
 
@@ -509,9 +512,11 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INTERFACE_MAIN )
     add_file( "skins2-last", "", NULL, SKINS2_LAST, SKINS2_LAST_LONG,
               true )
+        change_safe ()
         change_autosave ()
     add_string( "skins2-config", "", NULL, SKINS2_CONFIG, SKINS2_CONFIG_LONG,
                 true )
+        change_safe ()
         change_autosave ()
         change_internal ()
 #ifdef WIN32