Просмотр исходного кода

fix: 鬼知道为什么没有初始化

tangge233 2 лет назад
Родитель
Сommit
76adffffad

+ 1 - 1
Plain Craft Launcher 2/Pages/PageVersion/PageVersionMod.xaml

@@ -25,7 +25,7 @@
                         </Grid>
                     </local:MyCard>
                     <local:MyCard x:Name="PanListBack" VerticalAlignment="Top" Opacity="0" Margin="0,0,0,15" Title=" " MinHeight="40">
-                        <StackPanel Margin="0,9,10,0" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="24">
+                        <StackPanel Margin="0,8,9,0" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="24">
                             <local:MyRadioButton VerticalAlignment="Center" Height="24" Margin="2,0" Text="全部" x:Name="BtnTypeAll" ColorType="Highlight" Checked="True"/>
                             <TextBlock Text="|" Foreground="{StaticResource ColorBrushGray1}" VerticalAlignment="Center"/>
                             <local:MyRadioButton VerticalAlignment="Center" Height="24" Margin="2,0" Text="已启用" x:Name="BtnTypeEnabled" ColorType="Highlight"/>

+ 1 - 0
Plain Craft Launcher 2/Pages/PageVersion/PageVersionMod.xaml.vb

@@ -132,6 +132,7 @@
     ''' 刷新结果显示。
     ''' </summary>
     Private Sub RefreshResult(Mods As List(Of McMod))
+        If PanList Is Nothing Then Exit Sub
         Dim ShowMods As List(Of McMod) = New List(Of McMod)
         Select Case ViewModType
             Case ViewType.All