[chronojump] Continuation of last commit
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Continuation of last commit
- Date: Mon, 10 Oct 2022 14:16:22 +0000 (UTC)
commit b12aa4ee9948272462901cf71ded55436a240cb4
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Oct 10 16:15:38 2022 +0200
Continuation of last commit
src/gui/app1/session/export.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/session/export.cs b/src/gui/app1/session/export.cs
index 490971625..e6a2ba627 100644
--- a/src/gui/app1/session/export.cs
+++ b/src/gui/app1/session/export.cs
@@ -35,6 +35,7 @@ public partial class ChronoJumpWindow
/*
on Windows when exporting and compressing, the chronojump.db is still used
so better export on app1s_fileCopyPre, then copy dir to app1s_fileCopy and then compress
+ this will be on a temp file because it also cannot be deleted on export end
*/
string app1s_fileCopyPre;
@@ -74,7 +75,7 @@ public partial class ChronoJumpWindow
if (app1s_fc.Run() == (int)ResponseType.Accept)
{
app1s_fileCopy = app1s_fc.Filename + Path.DirectorySeparatorChar + "chronojump_" +
currentSession.Name + "_" + UtilDate.ToFile();
- app1s_fileCopyPre = app1s_fc.Filename + Path.DirectorySeparatorChar +
"chronojumpCopyPre_" + currentSession.Name + "_" + UtilDate.ToFile();
+ app1s_fileCopyPre = Path.Combine (Path.GetTempPath (), "chronojumpCopyPre_" +
currentSession.Name + "_" + UtilDate.ToFile()); //on temp because on Windows cannot be deleted
app1s_label_export_destination.Text = app1s_fileCopy;
if (exportImportCompressed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]