lol
at master 14 lines 727 B view raw
1diff --git a/NAPS2.Lib/EtoForms/Layout/C.cs b/NAPS2.Lib/EtoForms/Layout/C.cs 2--- a/NAPS2.Lib/EtoForms/Layout/C.cs 3+++ b/NAPS2.Lib/EtoForms/Layout/C.cs 4@@ -121,8 +121,8 @@ public static class C 5 if (flags.HasFlag(ButtonFlags.LargeText)) 6 { 7 var baseFontSize = button.Font.Size; 8- EtoPlatform.Current.AttachDpiDependency(button, 9- _ => button.Font = new Font(button.Font.Family, baseFontSize * 4 / 3)); 10+ EtoPlatform.Current.AttachDpiDependency(button, _ => { 11+ try { button.Font = new Font(button.Font.Family, baseFontSize * 4 / 3); } catch {}}); 12 } 13 EtoPlatform.Current.ConfigureImageButton(button, flags); 14 return button;