[chronojump] ForceSensor export can be cancelled ok since new code
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor export can be cancelled ok since new code
- Date: Tue, 9 Feb 2021 18:41:21 +0000 (UTC)
commit b2b61d286e34b393a12df0e7821bfc402c376bf7
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 9 19:30:48 2021 +0100
ForceSensor export can be cancelled ok since new code
src/forceSensor.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 8e70fea4..021eef60 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -2537,9 +2537,12 @@ public class ForceSensorExport
}
LogB.Information("Waiting creation of file... ");
- while ( ! ( Util.FileReadable(UtilEncoder.GetmifExportFileName())))
+ while ( ! ( Util.FileReadable(UtilEncoder.GetmifExportFileName()) || cancel ) )
;
+ if(cancel)
+ return false;
+
File.Copy(UtilEncoder.GetmifExportFileName(), exportFilename, true);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]