diff --git a/FModel/App.xaml.cs b/FModel/App.xaml.cs index fb282ea6..5cd426a3 100644 --- a/FModel/App.xaml.cs +++ b/FModel/App.xaml.cs @@ -129,11 +129,11 @@ public partial class App .WriteTo.Logger(lc => lc .Filter.ByExcluding(IsConversionLibrary) .WriteTo.Console(outputTemplate: template1, theme: AnsiConsoleTheme.Literate) - .WriteTo.File(outputTemplate: template1, path: filePath)) + .WriteTo.File(outputTemplate: template1, path: filePath, shared: true)) .WriteTo.Logger(lc => lc .Filter.ByIncludingOnly(IsConversionLibrary) .WriteTo.Console(outputTemplate: template2, theme: AnsiConsoleTheme.Literate) - .WriteTo.File(outputTemplate: template2, path: filePath)) + .WriteTo.File(outputTemplate: template2, path: filePath, shared: true)) .MinimumLevel.Override("CUE4Parse_Conversion", LogEventLevel.Verbose).WriteTo.Sink(ImGuiSink.Instance) .CreateLogger(); diff --git a/FModel/ViewModels/ExportSessionViewModel.cs b/FModel/ViewModels/ExportSessionViewModel.cs index 8638dad5..d877fd40 100644 --- a/FModel/ViewModels/ExportSessionViewModel.cs +++ b/FModel/ViewModels/ExportSessionViewModel.cs @@ -311,7 +311,7 @@ public class ExportSessionViewModel : ViewModel if (failed > 0) { - FLogger.Append(ELog.Error, () => FLogger.Text($"Failed to export {failed} asset{(failed == 1 ? "" : "s")}", Constants.WHITE, true)); + FLogger.Append(ELog.Error, () => FLogger.Text($"Failed to export {failed} asset{(failed == 1 ? "" : "s")}, open the Export Session window for more details.", Constants.WHITE, true)); } } @@ -460,6 +460,7 @@ public class ClassGroupViewModel(string name) : ViewModel public class ObjectGroupViewModel(string path) : ViewModel { public string Path { get; } = path; + public string Directory { get; } = path.SubstringBeforeLast('/'); public string Name { get; } = path.SubstringAfterLast('.'); public ObservableCollection Entries { get; } = []; diff --git a/FModel/Views/ExportSessionWindow.xaml b/FModel/Views/ExportSessionWindow.xaml index 247d7d8b..ae46c8f2 100644 --- a/FModel/Views/ExportSessionWindow.xaml +++ b/FModel/Views/ExportSessionWindow.xaml @@ -212,25 +212,17 @@ - - - - - - - - - + + + + +