[longomatch] Use a filename with the current date as default
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use a filename with the current date as default
- Date: Wed, 24 Sep 2014 20:18:09 +0000 (UTC)
commit 03d2d73969b14859d43d7804d1b3e6a28f7ab6ce
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]