Skip to content

Commit c7c23b3

Browse files
Merge pull request #1326 from mcneel/kike/1.32-merge-1.x
Merge branch 'kike/1.32' into 1.x
2 parents be50f6e + d2062a5 commit c7c23b3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/RhinoInside.Revit/Diagnostics.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void Start(string url)
5858
taskDialog.DefaultButton = TaskDialogResult.CommandLink1;
5959
if (taskDialog.Show() == TaskDialogResult.CommandLink1)
6060
{
61-
System.Windows.Forms.Clipboard.SetText(url);
61+
Clipboard.SetText(url);
6262
}
6363
}
6464
}
@@ -366,7 +366,17 @@ IEnumerable<string> attachments
366366

367367
mailBody = Uri.EscapeDataString(mailBody);
368368

369-
using (Process.Start(mailtoURI + mailBody)) { }
369+
try
370+
{
371+
var startInfo = new ProcessStartInfo(mailtoURI + mailBody)
372+
{
373+
UseShellExecute = true,
374+
WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
375+
};
376+
377+
using (Process.Start(startInfo)) { }
378+
}
379+
catch { }
370380
}
371381

372382
public static Result ShowLoadError()

src/RhinoInside.Revit/Rhinoceros.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ internal static bool InitGrasshopper(Assembly assembly)
141141

142142
internal static ARUI.Result Startup()
143143
{
144+
if (Core.CurrentStatus != Core.Status.Ready)
145+
return ARUI.Result.Failed;
146+
144147
if (!RhinoApp.CanSave)
145148
return ARUI.Result.Cancelled;
146149

0 commit comments

Comments
 (0)