Skip to content

Commit

Permalink
fix(dui2): uses old report log as fallback in new report (#1586)
Browse files Browse the repository at this point in the history
* preview bug fixes for rhino

* updated all connector bindings

* Update ConnectorBindingsTeklaStructure.Send.cs

* updated how new report handles old report items
  • Loading branch information
clairekuang authored Sep 5, 2022
1 parent fbe528f commit 2d81760
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class SpeckleCommand : Command
public static Window MainWindow { get; private set; }



private static CancellationTokenSource Lifetime = null;

public static Avalonia.Application AvaloniaApp { get; set; }
Expand Down Expand Up @@ -59,7 +58,6 @@ public static AppBuilder BuildAvaloniaApp()
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{


#if DEBUG
SpeckleRhinoConnectorPlugin.Instance.Init();
#endif
Expand All @@ -73,7 +71,6 @@ protected override Result RunCommand(RhinoDoc doc, RunMode mode)
#endif
Rhino.UI.Panels.OpenPanel(typeof(Panel).GUID);


return Result.Success;
}

Expand Down
4 changes: 3 additions & 1 deletion DesktopUI2/DesktopUI2/ViewModels/StreamViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ public string Log
{
get
{
string defaultMessage = "\nWelcome to the report! \n\nObjects you send or receive will appear here to help you understand how your document has changed.";
string defaultMessage = string.IsNullOrEmpty(Progress.Report.ConversionLogString) ?
"\nWelcome to the report! \n\nObjects you send or receive will appear here to help you understand how your document has changed." :
Progress.Report.ConversionLogString;

string reportInfo = $"\nOperation: {(PreviewOn ? "Preview " : "")}{(IsReceiver ? "Received at " : "Sent at ")}{DateTime.Now.ToLocalTime().ToString("dd/MM/yy HH:mm:ss")}";
reportInfo += $"\nTotal: {Report.Count} objects";
Expand Down
5 changes: 0 additions & 5 deletions DesktopUI2/DesktopUI2/Views/Pages/StreamEditView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@

<Grid RowDefinitions="auto,auto,auto,*" ColumnDefinitions="*,auto">

<!-- OLD REPORT, DEPRECATE AFTER ALL CONNECTOR BINDINGS ARE UPDATED WITH NEW APPOBJS -->
<ScrollViewer Grid.Row="2" IsVisible="{Binding !HasReportItems}">
<TextBlock TextWrapping="Wrap" Margin="35,0,0,10" Text="{Binding Progress.Report.ConversionLogString}" />
</ScrollViewer>

<!-- SUMMARY AND OPERATION ERRORS -->
<TextBlock
Grid.Row="0"
Expand Down

0 comments on commit 2d81760

Please sign in to comment.