diff --git a/UAssetGUI/UAGPalette.cs b/UAssetGUI/UAGPalette.cs index e39ebd2..472f889 100644 --- a/UAssetGUI/UAGPalette.cs +++ b/UAssetGUI/UAGPalette.cs @@ -102,9 +102,12 @@ private static void RefreshAllButtonsInControl(this Control ctrl, out bool needR if (IsComicSans()) { - needRefreshForComicSans = true; if (oldFontSettings == null) oldFontSettings = new Dictionary(); - if (ctrl2.Font.FontFamily.Name != "Comic Sans MS") oldFontSettings[ctrl2] = ctrl2.Font; + if (ctrl2.Font.FontFamily.Name != "Comic Sans MS") + { + oldFontSettings[ctrl2] = ctrl2.Font; + needRefreshForComicSans = true; + } ctrl2.Font = new Font("Comic Sans MS", ctrl2.Font.Size, ctrl2.Font.Style); } else if (oldFontSettings != null)