diff --git a/.editorconfig b/.editorconfig index 11b8def..769e08a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -46,7 +46,7 @@ dotnet_style_collection_initializer = true:suggestion dotnet_style_explicit_tuple_names = true:suggestion dotnet_style_null_propagation = true:suggestion dotnet_style_object_initializer = true:suggestion -dotnet_style_prefer_auto_properties = true:silent +dotnet_style_prefer_auto_properties = true:none dotnet_style_prefer_compound_assignment = true:suggestion dotnet_style_prefer_conditional_expression_over_assignment = true:silent dotnet_style_prefer_conditional_expression_over_return = true:silent diff --git a/chuni-hands/MainWindow.xaml.cs b/chuni-hands/MainWindow.xaml.cs index 6df7bb4..d69a443 100644 --- a/chuni-hands/MainWindow.xaml.cs +++ b/chuni-hands/MainWindow.xaml.cs @@ -26,6 +26,8 @@ namespace chuni_hands { private readonly Config _config = new Config(); private readonly HttpClient _http = new HttpClient(); + public Config Config => _config; + public MainWindow() { if (File.Exists(ConfigFile)) { _config = Helpers.Deserialize(ConfigFile);