Skip to content

Commit

Permalink
Merge pull request #90 from cwensley/fix-windows-brush-editor-always-…
Browse files Browse the repository at this point in the history
…showing

Fix issue showing the brush editor constantly after it was opened
  • Loading branch information
cwensley authored Apr 15, 2023
2 parents 10bde55 + 65f243e commit c1df6fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Source/Pablo.Interface/Pablo.Interface.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(EtoBasePath)src\Eto\Eto.csproj" Condition="$(EtoBasePath) != ''" />
<PackageReference Include="Eto.Forms" Version="2.7.1" Condition="$(EtoBasePath) == ''" />
<PackageReference Include="Eto.Forms" Version="2.7.4" Condition="$(EtoBasePath) == ''" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
6 changes: 4 additions & 2 deletions Source/Pablo/Formats/Character/Controls/BrushPad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ Control GradientPreview()
ReadOnly = true,
Bordered = true
};
control.MouseDown += (sender, e) =>
control.MouseDown += (sender, e) => e.Handled = true;
control.MouseUp += (sender, e) =>
{
EditBrushes();
e.Handled = true;
if (new Rectangle(control.Size).Contains((Point)e.Location))
EditBrushes();
};
return control;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Pablo/Pablo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(EtoBasePath)src\Eto\Eto.csproj" Condition="$(EtoBasePath) != ''" />
<PackageReference Include="Eto.Forms" Version="2.7.1" Condition="$(EtoBasePath) == ''" />
<PackageReference Include="Eto.Forms" Version="2.7.4" Condition="$(EtoBasePath) == ''" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="sharpcompress" Version="0.32.2" />
<PackageReference Include="Mono.Nat" Version="3.0.3" />
Expand Down
12 changes: 6 additions & 6 deletions Source/PabloDraw/PabloDraw.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
</ItemGroup>

<ItemGroup Condition="$(EtoBasePath) == ''">
<PackageReference Include="Eto.Forms" Version="2.7.1" />
<PackageReference Include="Eto.Platform.Gtk" Version="2.7.1" Condition="$(BuildTarget) == 'Linux'" />
<PackageReference Include="Eto.Platform.Mac64" Version="2.7.1" Condition="$(BuildTarget) == 'Mac'" />
<PackageReference Include="Eto.Platform.Windows" Version="2.7.1" Condition="$(BuildTarget) == 'Windows'" />
<!-- <PackageReference Include="Eto.Platform.Gtk2" Version="2.7.1" Condition="$(BuildTarget) == 'Linux'" /> -->
<!-- <PackageReference Include="Eto.Platform.Wpf" Version="2.7.1" Condition="$(BuildTarget) == 'Windows'" /> -->
<PackageReference Include="Eto.Forms" Version="2.7.4" />
<PackageReference Include="Eto.Platform.Gtk" Version="2.7.4" Condition="$(BuildTarget) == 'Linux'" />
<PackageReference Include="Eto.Platform.Mac64" Version="2.7.4" Condition="$(BuildTarget) == 'Mac'" />
<PackageReference Include="Eto.Platform.Windows" Version="2.7.4" Condition="$(BuildTarget) == 'Windows'" />
<!-- <PackageReference Include="Eto.Platform.Gtk2" Version="2.7.4" Condition="$(BuildTarget) == 'Linux'" /> -->
<!-- <PackageReference Include="Eto.Platform.Wpf" Version="2.7.4" Condition="$(BuildTarget) == 'Windows'" /> -->
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit c1df6fe

Please sign in to comment.