[longomatch/newui: 128/157] Use a filename with the current date as default



commit e52fb3fe5fc5c57ff7eb6d323c4822366a652d48
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Aug 28 20:29:55 2014 +0200

    Use a filename with the current date as default

 LongoMatch.GUI/Gui/Component/MediaFileChooser.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs 
b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
index c9cd61e..f9da9d2 100644
--- a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
+++ b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
@@ -79,9 +79,10 @@ namespace LongoMatch.Gui.Component
                        if (MediaFileMode) {
                                MediaFile = Misc.OpenFile (this);
                        } else {
-                               File = FileChooserHelper.SaveFile (this, Catalog.GetString ("Output file"),
-                                                                  "Capture.mp4", Config.VideosDir, "MP4",
-                                                                  new string[] { "*.mp4" });
+                               string filename = String.Format ("LongoMatch-{0}.mp4",
+                                                                DateTime.Now.ToShortDateString ().Replace 
('/', '-'));
+                               File = FileChooserHelper.SaveFile (this, Catalog.GetString ("Output file"), 
filename,
+                                                                  Config.VideosDir, "MP4", new string[] { 
"*.mp4" });
                        }
                        if (ChangedEvent != null) {
                                ChangedEvent (this, null);


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