Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
15 lines
727 B
Diff
15 lines
727 B
Diff
diff --git a/NAPS2.Lib/EtoForms/Layout/C.cs b/NAPS2.Lib/EtoForms/Layout/C.cs
|
|
--- a/NAPS2.Lib/EtoForms/Layout/C.cs
|
|
+++ b/NAPS2.Lib/EtoForms/Layout/C.cs
|
|
@@ -121,8 +121,8 @@ public static class C
|
|
if (flags.HasFlag(ButtonFlags.LargeText))
|
|
{
|
|
var baseFontSize = button.Font.Size;
|
|
- EtoPlatform.Current.AttachDpiDependency(button,
|
|
- _ => button.Font = new Font(button.Font.Family, baseFontSize * 4 / 3));
|
|
+ EtoPlatform.Current.AttachDpiDependency(button, _ => {
|
|
+ try { button.Font = new Font(button.Font.Family, baseFontSize * 4 / 3); } catch {}});
|
|
}
|
|
EtoPlatform.Current.ConfigureImageButton(button, flags);
|
|
return button;
|