diff --git a/ObservatoryCore/Properties/Core.Designer.cs b/ObservatoryCore/Properties/Core.Designer.cs
index 96eba62..bca9546 100644
--- a/ObservatoryCore/Properties/Core.Designer.cs
+++ b/ObservatoryCore/Properties/Core.Designer.cs
@@ -12,7 +12,7 @@ namespace Observatory.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
internal sealed partial class Core : global::System.Configuration.ApplicationSettingsBase {
private static Core defaultInstance = ((Core)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Core())));
@@ -274,5 +274,17 @@ namespace Observatory.Properties {
this["StartReadAll"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Fixed width")]
+ public string ExportStyle {
+ get {
+ return ((string)(this["ExportStyle"]));
+ }
+ set {
+ this["ExportStyle"] = value;
+ }
+ }
}
}
diff --git a/ObservatoryCore/Properties/Core.settings b/ObservatoryCore/Properties/Core.settings
index 37938c1..77b31db 100644
--- a/ObservatoryCore/Properties/Core.settings
+++ b/ObservatoryCore/Properties/Core.settings
@@ -65,5 +65,8 @@
False
+
+ Fixed width
+
\ No newline at end of file
diff --git a/ObservatoryCore/UI/ViewModels/CoreViewModel.cs b/ObservatoryCore/UI/ViewModels/CoreViewModel.cs
index 219814d..9dd4a87 100644
--- a/ObservatoryCore/UI/ViewModels/CoreViewModel.cs
+++ b/ObservatoryCore/UI/ViewModels/CoreViewModel.cs
@@ -112,95 +112,67 @@ namespace Observatory.UI.ViewModels
try
{
var exportFolder = Properties.Core.Default.ExportFolder;
-
if (string.IsNullOrEmpty(exportFolder))
{
exportFolder = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
+
+ OpenFolderDialog openFolderDialog = new()
+ {
+ Directory = exportFolder
+ };
+
+ var application = (IClassicDesktopStyleApplicationLifetime)Avalonia.Application.Current.ApplicationLifetime;
+
+ var selectedFolder = await openFolderDialog.ShowAsync(application.MainWindow);
+
+ if (!string.IsNullOrEmpty(selectedFolder))
+ {
+ Properties.Core.Default.ExportFolder = selectedFolder;
+ Properties.Core.Default.Save();
+ exportFolder = selectedFolder;
+ }
}
- OpenFolderDialog openFolderDialog = new()
+ var exportStyle = Properties.Core.Default.ExportStyle;
+ if (string.IsNullOrEmpty(exportStyle))
{
- Directory = exportFolder
- };
-
- var application = (IClassicDesktopStyleApplicationLifetime)Avalonia.Application.Current.ApplicationLifetime;
-
- var selectedFolder = await openFolderDialog.ShowAsync(application.MainWindow);
-
- if (!string.IsNullOrEmpty(selectedFolder))
- {
- Properties.Core.Default.ExportFolder = selectedFolder;
+ exportStyle = "Fixed width";
+ Properties.Core.Default.ExportStyle = exportStyle;
Properties.Core.Default.Save();
- exportFolder = selectedFolder;
+ }
- foreach (var tab in tabs.Where(t => t.Name != "Core"))
+ foreach (var tab in tabs.Where(t => t.Name != "Core"))
+ {
+ var ui = (BasicUIViewModel)tab.UI;
+ List