File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static void Start(string url)
58
58
taskDialog . DefaultButton = TaskDialogResult . CommandLink1 ;
59
59
if ( taskDialog . Show ( ) == TaskDialogResult . CommandLink1 )
60
60
{
61
- System . Windows . Forms . Clipboard . SetText ( url ) ;
61
+ Clipboard . SetText ( url ) ;
62
62
}
63
63
}
64
64
}
@@ -366,7 +366,17 @@ IEnumerable<string> attachments
366
366
367
367
mailBody = Uri . EscapeDataString ( mailBody ) ;
368
368
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 { }
370
380
}
371
381
372
382
public static Result ShowLoadError ( )
Original file line number Diff line number Diff line change @@ -141,6 +141,9 @@ internal static bool InitGrasshopper(Assembly assembly)
141
141
142
142
internal static ARUI . Result Startup ( )
143
143
{
144
+ if ( Core . CurrentStatus != Core . Status . Ready )
145
+ return ARUI . Result . Failed ;
146
+
144
147
if ( ! RhinoApp . CanSave )
145
148
return ARUI . Result . Cancelled ;
146
149
You can’t perform that action at this time.
0 commit comments