mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 11:40:40 -07:00
BUG-2102: Fixing an issue when a second ColorDialog is opened.
This commit is contained in:
parent
9e95482881
commit
98415aaa81
3 changed files with 9 additions and 11 deletions
|
@ -66,8 +66,10 @@ namespace Greenshot.Controls {
|
|||
}
|
||||
|
||||
private void ColorButtonClick(object sender, EventArgs e) {
|
||||
ColorDialog colorDialog = ColorDialog.GetInstance();
|
||||
colorDialog.Color = SelectedColor;
|
||||
var colorDialog = new ColorDialog
|
||||
{
|
||||
Color = SelectedColor
|
||||
};
|
||||
// Using the parent to make sure the dialog doesn't show on another window
|
||||
colorDialog.ShowDialog(Parent.Parent);
|
||||
if (colorDialog.DialogResult == DialogResult.Cancel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue