summaryrefslogtreecommitdiffstats
path: root/win/C#/Presets/PresetsHandler.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-05-07 23:00:33 +0000
committersr55 <[email protected]>2009-05-07 23:00:33 +0000
commit166ebbdc3752de708a72a7c4826713a804b3d507 (patch)
tree40c1e5b04addbef569ffbfa83b4554326029b1a5 /win/C#/Presets/PresetsHandler.cs
parentd1e3dca5c9e68a95d6aa4c13c004283df24329dd (diff)
WinGui:
- Notify users that built-in presets have been updated (when preset version < handbrake version.) - Option to disable that alert in Options > Advanced tab git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2401 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Presets/PresetsHandler.cs')
-rw-r--r--win/C#/Presets/PresetsHandler.cs20
1 files changed, 14 insertions, 6 deletions
diff --git a/win/C#/Presets/PresetsHandler.cs b/win/C#/Presets/PresetsHandler.cs
index cbd654558..2ba6acc37 100644
--- a/win/C#/Presets/PresetsHandler.cs
+++ b/win/C#/Presets/PresetsHandler.cs
@@ -220,13 +220,7 @@ namespace Handbrake.Presets
}
}
- // Update built-in presets if the built-in presets belong to an older version.
- if (presets.Count != 0)
- if (presets[0].Version != Properties.Settings.Default.hb_version)
- updateBuiltInPresets();
-
// Load in the users presets from user_presets.xml
-
if (File.Exists(userPresetFile))
{
using (FileStream strm = new FileStream(userPresetFile, FileMode.Open, FileAccess.Read))
@@ -389,5 +383,19 @@ namespace Handbrake.Presets
return false;
}
+
+ public Boolean checkIfPresetsAreOutOfDate()
+ {
+ loadPresetData();
+ // Update built-in presets if the built-in presets belong to an older version.
+ if (presets.Count != 0)
+ if (presets[0].Version != Properties.Settings.Default.hb_version)
+ {
+ updateBuiltInPresets();
+ return true;
+ }
+
+ return false;
+ }
}
} \ No newline at end of file