mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 14:24:43 -07:00
Hide button
This commit is contained in:
parent
aac7354a6e
commit
4a635c409f
1 changed files with 17 additions and 6 deletions
|
@ -25,6 +25,7 @@ using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Greenshot.Base;
|
using Greenshot.Base;
|
||||||
|
@ -183,6 +184,16 @@ namespace Greenshot.Editor.Forms
|
||||||
|
|
||||||
// Workaround: As the cursor is (mostly) selected on the surface a funny artifact is visible, this fixes it.
|
// Workaround: As the cursor is (mostly) selected on the surface a funny artifact is visible, this fixes it.
|
||||||
HideToolstripItems();
|
HideToolstripItems();
|
||||||
|
|
||||||
|
HideEmojiButtonWhenFontIsNotInstalled();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HideEmojiButtonWhenFontIsNotInstalled()
|
||||||
|
{
|
||||||
|
if (!FontFamily.Families.Any(f => string.Equals(f.Name, "Segoe UI Emoji", StringComparison.OrdinalIgnoreCase)))
|
||||||
|
{
|
||||||
|
btnEmoji.Visible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue