regression

master
logchan 2020-02-13 14:04:14 -05:00
parent 63d3d7edc2
commit ce95d8951f
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion dotnet_style_null_propagation = true:suggestion
dotnet_style_object_initializer = 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_compound_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent dotnet_style_prefer_conditional_expression_over_return = true:silent

View File

@ -26,6 +26,8 @@ namespace chuni_hands {
private readonly Config _config = new Config(); private readonly Config _config = new Config();
private readonly HttpClient _http = new HttpClient(); private readonly HttpClient _http = new HttpClient();
public Config Config => _config;
public MainWindow() { public MainWindow() {
if (File.Exists(ConfigFile)) { if (File.Exists(ConfigFile)) {
_config = Helpers.Deserialize<Config>(ConfigFile); _config = Helpers.Deserialize<Config>(ConfigFile);