aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/ScrollBar.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-18 20:25:52 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-18 20:25:52 +0800
commiteca67e7d2bd227433eb4b47b499cfcc0106a3eaa (patch)
treeb037f6f2f39ef40b0cfa983ec42efefc87c5d70f /src/ui/render/ScrollBar.cpp
parent0263f0a3fa0760afae94909700f8f6c52ec7c750 (diff)
downloadcru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.tar.gz
cru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.tar.bz2
cru-eca67e7d2bd227433eb4b47b499cfcc0106a3eaa.zip
Fix AutoFreePtr.
Diffstat (limited to 'src/ui/render/ScrollBar.cpp')
-rw-r--r--src/ui/render/ScrollBar.cpp4
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); }));
}
}