[vlc-devel] commit: skins2: add config_SaveConfigFile to retain changes across sessions (Erwan Tulou )
git version control
git at videolan.org
Tue Jun 16 12:52:37 CEST 2009
vlc | branch: 1.0-bugfix | Erwan Tulou <erwan10 at videolan.org> | Tue Jun 16 12:37:58 2009 +0200| [e0950bdd8b7083874dc49f86de228b167d5f408f] | committer: Erwan Tulou
skins2: add config_SaveConfigFile to retain changes across sessions
(cherry picked from commit f239f6fb38a5ea5c13dd9d4d5e1d3844dbbb29cb)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0950bdd8b7083874dc49f86de228b167d5f408f
---
modules/gui/skins2/src/skin_main.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/gui/skins2/src/skin_main.cpp b/modules/gui/skins2/src/skin_main.cpp
index d67cbdf..2989fa0 100644
--- a/modules/gui/skins2/src/skin_main.cpp
+++ b/modules/gui/skins2/src/skin_main.cpp
@@ -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
More information about the vlc-devel
mailing list