diff --git a/CUE4Parse b/CUE4Parse index 338fdf5b..20f91801 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit 338fdf5bb380245a26ce1c5b540159c9b8a1c277 +Subproject commit 20f91801ae8b6dd7318e6fc3055f8c354b7f78ff diff --git a/FModel/ViewModels/ExportSessionOptionsViewModel.cs b/FModel/ViewModels/ExportSessionOptionsViewModel.cs index ea7b45e7..f8930ead 100644 --- a/FModel/ViewModels/ExportSessionOptionsViewModel.cs +++ b/FModel/ViewModels/ExportSessionOptionsViewModel.cs @@ -54,6 +54,7 @@ public class ExportSessionOptionsViewModel : ViewModel set { if (!SetProperty(ref field, value)) return; + RaisePropertyChanged(nameof(SocketSettingsEnabled)); RaisePropertyChanged(nameof(CompressionSettingsEnabled)); } } @@ -85,6 +86,8 @@ public class ExportSessionOptionsViewModel : ViewModel set => SetProperty(ref field, value); } + public bool SocketSettingsEnabled => SelectedMeshFormat == EMeshFormat.ActorX; + public IEnumerable CompressionFormats { get; } = Enum.GetValues(); public EFileCompressionFormat SelectedCompressionFormat { diff --git a/FModel/ViewModels/ExportSessionViewModel.cs b/FModel/ViewModels/ExportSessionViewModel.cs index dd7f0f81..e46bbe66 100644 --- a/FModel/ViewModels/ExportSessionViewModel.cs +++ b/FModel/ViewModels/ExportSessionViewModel.cs @@ -386,6 +386,10 @@ public class LogEntryViewModel(LogEvent log) { public LogEventLevel Level { get; } = log.Level; public DateTimeOffset Timestamp { get; } = log.Timestamp; - public string Message { get; } = log.RenderMessage(); + public string Message { get; } = log.Exception switch + { + NullReferenceException or ArgumentException => log.RenderMessage(), + _ => log.Exception?.Message ?? log.RenderMessage() + }; public Exception? Exception { get; } = log.Exception; } diff --git a/FModel/Views/ExportSessionWindow.xaml b/FModel/Views/ExportSessionWindow.xaml index a9c0928a..9a37bcba 100644 --- a/FModel/Views/ExportSessionWindow.xaml +++ b/FModel/Views/ExportSessionWindow.xaml @@ -147,19 +147,15 @@ + FontSize="11" Margin="0 0 5 0" VerticalAlignment="Center" + Foreground="{DynamicResource {x:Static adonisUi:Brushes.DisabledForegroundBrush}}" /> + Text="{Binding Message}" FontSize="11" VerticalAlignment="Center" + Foreground="{DynamicResource {x:Static adonisUi:Brushes.ForegroundBrush}}" /> - @@ -568,10 +564,12 @@ - + + SelectedItem="{Binding Options.SelectedSocketFormat, Mode=TwoWay}" + IsEnabled="{Binding Options.SocketSettingsEnabled}"> @@ -752,24 +750,15 @@ + HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="Export" + IsEnabled="{Binding CanExport}" + Visibility="{Binding IsFinished, Converter={x:Static converters:InvertBoolToVisibilityConverter.Instance}}" + Click="OnExportClick" /> + +