[chronojump] Photocells/sprint on mac check on sprint/export if R is installed. If not, show message.
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Photocells/sprint on mac check on sprint/export if R is installed. If not, show message.
- Date: Fri, 18 Feb 2022 12:47:02 +0000 (UTC)
commit f48eac82bc3040b19b567a2cdd32dcc79b19eec6
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Feb 18 13:46:29 2022 +0100
Photocells/sprint on mac check on sprint/export if R is installed. If not, show message.
src/gui/sprint.cs | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index cbca6800b..3ca8e487c 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -206,6 +206,13 @@ public partial class ChronoJumpWindow
private void on_button_sprint_clicked (object o, EventArgs args)
{
+ if(operatingSystem == UtilAll.OperatingSystems.MACOSX &&
+ ! Util.FileExists(Constants.ROSX) )
+ {
+ showMacRInstallMessage ();
+ return;
+ }
+
if(! GetSelectedSprint(treeview_runs_interval_sprint))
{
new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Error"));
@@ -334,7 +341,15 @@ public partial class ChronoJumpWindow
private void on_button_sprint_export_not_set_clicked (object o, EventArgs args)
{
- // 1) check if all sessions
+ // 1) avoid exporting to R on mac if R is not installed
+ if(operatingSystem == UtilAll.OperatingSystems.MACOSX &&
+ ! Util.FileExists(Constants.ROSX) )
+ {
+ showMacRInstallMessage ();
+ return;
+ }
+
+ // 2) check if all sessions
if(radio_sprint_analyze_individual_all_sessions.Active)
{
if(currentPerson == null)
@@ -344,7 +359,7 @@ public partial class ChronoJumpWindow
return;
}
- // 2) current session (individual or groupal)
+ // 3) current session (individual or groupal)
if(currentSession == null)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]