Переглянути джерело

Disable print button on macOS

Ruben 4 місяців тому
батько
коміт
b3ef6a1fbc

+ 2 - 1
src/PicView.Avalonia/Views/UC/Menus/FileMenu.axaml

@@ -71,7 +71,8 @@
                     IsEnabled="{CompiledBinding PicViewer.FileInfo,
                                                 Converter={x:Static ObjectConverters.IsNotNull}}"
                     ToolTip.Tip="{CompiledBinding Translation.Print,
-                                                  Mode=OneWay}" />
+                                                  Mode=OneWay}"
+                    x:Name="PrintButton" />
 
                 <customControls:IconButton
                     Canvas.Left="90"

+ 1 - 0
src/PicView.Avalonia/Views/UC/Menus/FileMenu.axaml.cs

@@ -22,6 +22,7 @@ public partial class FileMenu : AnimatedMenu
             if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
             {
                 OpenWithButton.IsEnabled = false;
+                PrintButton.IsEnabled = false;
             }
         };
     }