diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-18 20:25:52 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-18 20:25:52 +0800 |
| commit | eca67e7d2bd227433eb4b47b499cfcc0106a3eaa (patch) | |
| tree | b037f6f2f39ef40b0cfa983ec42efefc87c5d70f /src/ui/render | |
| parent | 0263f0a3fa0760afae94909700f8f6c52ec7c750 (diff) | |
| download | cru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.tar.gz cru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.tar.bz2 cru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.zip | |
Fix AutoFreePtr.
Diffstat (limited to 'src/ui/render')
| -rw-r--r-- | src/ui/render/ScrollBar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/render/ScrollBar.cpp b/src/ui/render/ScrollBar.cpp index 4343f15a..79c2ea42 100644 --- a/src/ui/render/ScrollBar.cpp +++ b/src/ui/render/ScrollBar.cpp @@ -339,8 +339,8 @@ void ScrollBar::RestoreCursor() { void ScrollBar::BeginAutoCollapseTimer() { if (!auto_collapse_timer_canceler_ && IsExpanded()) { - auto_collapse_timer_canceler_ = GetUiApplication()->SetTimeout( - kScrollBarAutoCollapseDelay, [this] { this->SetExpanded(false); }); + auto_collapse_timer_canceler_.Reset(GetUiApplication()->SetTimeout( + kScrollBarAutoCollapseDelay, [this] { this->SetExpanded(false); })); } } |
