feat: filepath相关修正

master
sunhonglei 7 months ago
parent f17e20e3f0
commit d3332c9ffb
  1. 6
      ViewModel/Configuration/SettingsPages/SettingsVM.cs
  2. 2
      Views/Configuration/SettingPages/CustomSettingPage.xaml

@ -61,6 +61,10 @@ namespace SparkClient.ViewModel.Configuration.SettingsPages
Languages.Rows.Add("中文", "zh-cn");
Languages.Rows.Add("English", "en");
LanguageId = Settings.SelectValueByName("LanguageId");
if (LanguageId.Length == 0)
{
LanguageId = "zh-cn";
}
bool.TryParse( Settings.SelectValueByName("TxtFileChecked"), out bool TxtFileChecked);
this.TxtFileChecked = TxtFileChecked;
bool.TryParse(Settings.SelectValueByName("StlFileChecked"), out bool StlFileChecked);
@ -227,7 +231,7 @@ namespace SparkClient.ViewModel.Configuration.SettingsPages
}
else
{
return "zh-cn";
return "";
}
}
}

@ -117,7 +117,7 @@
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBox TextWrapping="Wrap" Name ="filePath" Grid.Column="0" Text="{Binding FilePath}" Background="White" Width="300" HorizontalAlignment="Left"/>
<TextBlock Text="{StaticResource SystemSettingCustomSelectPathTip}" Grid.Column="0" Foreground="#BBBBBB" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
<TextBlock Text="{StaticResource SystemSettingCustomSelectPathTip}" Grid.Column="0" Foreground="#BBBBBB" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" IsEnabled="False">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Visibility" Value="Collapsed"/>

Loading…
Cancel
Save