[pitivi] preset: Make savePreset protected



commit d97b44d5d2160e3d2d23431c4f6b7e14183a29f1
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sun Oct 11 00:53:40 2015 +0200

    preset: Make savePreset protected
    
    Differential Revision: https://phabricator.freedesktop.org/D371
    Reviewed-by: Thibault Saunier <tsaunier gnome org>

 pitivi/preset.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/preset.py b/pitivi/preset.py
index bc21c3e..4126964 100644
--- a/pitivi/preset.py
+++ b/pitivi/preset.py
@@ -113,9 +113,9 @@ class PresetManager(Loggable):
     def saveAll(self):
         """Write changes to disk for all presets"""
         for preset_name, values in self.ordered:
-            self.savePreset(preset_name)
+            self._savePreset(preset_name)
 
-    def savePreset(self, preset_name):
+    def _savePreset(self, preset_name):
         if not os.path.exists(self.user_path):
             os.makedirs(self.user_path)
         try:
@@ -260,7 +260,7 @@ class PresetManager(Loggable):
             self._renameCurrentPreset(new_name)
         values = self.presets[self.cur_preset]
         self._updatePresetValues(values)
-        self.savePreset(self.cur_preset)
+        self._savePreset(self.cur_preset)
 
     def _updatePresetValues(self, values):
         """Copy the values from the widgets to the specified values dict."""


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]