ntminer 5 rokov pred
rodič
commit
575dfa19cc

+ 2 - 0
src/AppViews0/Views/ConsoleWindow.xaml

@@ -17,6 +17,8 @@
     <Grid>
         <TextBlock Foreground="White" HorizontalAlignment="Center" FontSize="50" Text="Windows控制台窗口"></TextBlock>
         <controls:KbLinkButton
+            x:Name="LbtnWindowsZoomBug"
+            Visibility="Collapsed"
             Margin="350 0 20 80"
 			Padding="0"
             HorizontalAlignment="Left"

+ 4 - 0
src/AppViews0/Views/ConsoleWindow.xaml.cs

@@ -33,6 +33,10 @@ namespace NTMiner.Views {
                     };
                 }
             };
+            // 延迟展示从而避免不需要展示红字的时候看到红字
+            VirtualRoot.AddOnecePath<HasBoot1SecondEvent>("启动一会后显式指引解决WindowsZoomBug的一行红字", LogEnum.None, action: message => {
+                LbtnWindowsZoomBug.Visibility = Visibility.Visible;
+            }, pathId: PathId.Empty, this.GetType());
         }
 
         protected override void OnClosed(EventArgs e) {