Skip to content

Commit 8e9bf21

Browse files
authored
[SIL.WIndows.Forms] In CustomDropDown, fixed timer check (#1433)
1 parent 23dc405 commit 8e9bf21

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616

1717
## [Unreleased]
1818

19+
### Fixed
20+
21+
- [SIL.Windows.Forms] In `CustomDropDown.OnOpening`, fixed check that triggers timer to stop.
22+
1923
## [16.0.0] - 2025-05-20
2024

2125
### Added

SIL.Windows.Forms/Widgets/CustomDropDown.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,11 @@ protected override void OnOpening(System.ComponentModel.CancelEventArgs e)
184184
timer.Tick += delegate
185185
{
186186
Opacity += 0.1;
187-
if (Opacity == 1f)
187+
if (Opacity > .99)
188+
{
189+
Opacity = 1f;
188190
timer.Stop();
191+
}
189192
};
190193

191194
timer.Start();

0 commit comments

Comments
 (0)