Skip to content

Commit c1df6fe

Browse files
authored
Merge pull request #90 from cwensley/fix-windows-brush-editor-always-showing
Fix issue showing the brush editor constantly after it was opened
2 parents 10bde55 + 65f243e commit c1df6fe

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Source/Pablo.Interface/Pablo.Interface.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</ItemGroup>
1616
<ItemGroup>
1717
<ProjectReference Include="$(EtoBasePath)src\Eto\Eto.csproj" Condition="$(EtoBasePath) != ''" />
18-
<PackageReference Include="Eto.Forms" Version="2.7.1" Condition="$(EtoBasePath) == ''" />
18+
<PackageReference Include="Eto.Forms" Version="2.7.4" Condition="$(EtoBasePath) == ''" />
1919
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
2020
</ItemGroup>
2121
<ItemGroup>

Source/Pablo/Formats/Character/Controls/BrushPad.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ Control GradientPreview()
9595
ReadOnly = true,
9696
Bordered = true
9797
};
98-
control.MouseDown += (sender, e) =>
98+
control.MouseDown += (sender, e) => e.Handled = true;
99+
control.MouseUp += (sender, e) =>
99100
{
100-
EditBrushes();
101101
e.Handled = true;
102+
if (new Rectangle(control.Size).Contains((Point)e.Location))
103+
EditBrushes();
102104
};
103105
return control;
104106
}

Source/Pablo/Pablo.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</ItemGroup>
2424
<ItemGroup>
2525
<ProjectReference Include="$(EtoBasePath)src\Eto\Eto.csproj" Condition="$(EtoBasePath) != ''" />
26-
<PackageReference Include="Eto.Forms" Version="2.7.1" Condition="$(EtoBasePath) == ''" />
26+
<PackageReference Include="Eto.Forms" Version="2.7.4" Condition="$(EtoBasePath) == ''" />
2727
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
2828
<PackageReference Include="sharpcompress" Version="0.32.2" />
2929
<PackageReference Include="Mono.Nat" Version="3.0.3" />

Source/PabloDraw/PabloDraw.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@
8282
</ItemGroup>
8383

8484
<ItemGroup Condition="$(EtoBasePath) == ''">
85-
<PackageReference Include="Eto.Forms" Version="2.7.1" />
86-
<PackageReference Include="Eto.Platform.Gtk" Version="2.7.1" Condition="$(BuildTarget) == 'Linux'" />
87-
<PackageReference Include="Eto.Platform.Mac64" Version="2.7.1" Condition="$(BuildTarget) == 'Mac'" />
88-
<PackageReference Include="Eto.Platform.Windows" Version="2.7.1" Condition="$(BuildTarget) == 'Windows'" />
89-
<!-- <PackageReference Include="Eto.Platform.Gtk2" Version="2.7.1" Condition="$(BuildTarget) == 'Linux'" /> -->
90-
<!-- <PackageReference Include="Eto.Platform.Wpf" Version="2.7.1" Condition="$(BuildTarget) == 'Windows'" /> -->
85+
<PackageReference Include="Eto.Forms" Version="2.7.4" />
86+
<PackageReference Include="Eto.Platform.Gtk" Version="2.7.4" Condition="$(BuildTarget) == 'Linux'" />
87+
<PackageReference Include="Eto.Platform.Mac64" Version="2.7.4" Condition="$(BuildTarget) == 'Mac'" />
88+
<PackageReference Include="Eto.Platform.Windows" Version="2.7.4" Condition="$(BuildTarget) == 'Windows'" />
89+
<!-- <PackageReference Include="Eto.Platform.Gtk2" Version="2.7.4" Condition="$(BuildTarget) == 'Linux'" /> -->
90+
<!-- <PackageReference Include="Eto.Platform.Wpf" Version="2.7.4" Condition="$(BuildTarget) == 'Windows'" /> -->
9191
</ItemGroup>
9292

9393
<ItemGroup>

0 commit comments

Comments
 (0)