BUG-2102: Fixing an issue when a second ColorDialog is opened.

This commit is contained in:
Robin 2017-01-25 17:33:21 +01:00
commit 98415aaa81
3 changed files with 9 additions and 11 deletions

View file

@ -34,10 +34,9 @@ namespace Greenshot {
/// Description of ColorDialog.
/// </summary>
public partial class ColorDialog : BaseForm {
private static ColorDialog _uniqueInstance;
private static readonly EditorConfiguration EditorConfig = IniConfig.GetIniSection<EditorConfiguration>();
private ColorDialog() {
public ColorDialog() {
SuspendLayout();
InitializeComponent();
SuspendLayout();
@ -47,11 +46,6 @@ namespace Greenshot {
UpdateRecentColorsButtonRow();
}
public static ColorDialog GetInstance()
{
return _uniqueInstance ?? (_uniqueInstance = new ColorDialog());
}
private readonly List<Button> _colorButtons = new List<Button>();
private readonly List<Button> _recentColorButtons = new List<Button>();
private readonly ToolTip _toolTip = new ToolTip();