aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ClickDetector.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-29 00:31:21 +0800
committercrupest <crupest@outlook.com>2020-06-29 00:31:21 +0800
commit5c3dae62b9218dbd2493ff6390db062013ca4bdc (patch)
tree3425a9efa118eaf89627e6903cecb50a3daedb1d /src/ui/ClickDetector.cpp
parent6b5aff7b7e50fae15cb010b340099163725f664c (diff)
downloadcru-5c3dae62b9218dbd2493ff6390db062013ca4bdc.tar.gz
cru-5c3dae62b9218dbd2493ff6390db062013ca4bdc.tar.bz2
cru-5c3dae62b9218dbd2493ff6390db062013ca4bdc.zip
...
Diffstat (limited to 'src/ui/ClickDetector.cpp')
-rw-r--r--src/ui/ClickDetector.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/ClickDetector.cpp b/src/ui/ClickDetector.cpp
index e873efd4..93e6f303 100644
--- a/src/ui/ClickDetector.cpp
+++ b/src/ui/ClickDetector.cpp
@@ -44,7 +44,8 @@ ClickDetector::ClickDetector(Control* control) {
if (this->enable_ && (button & this->trigger_button_) &&
this->state_ == ClickState::Hover) {
if (!this->control_->CaptureMouse()) {
- log::Debug("Failed to capture mouse when begin click.");
+ log::TagDebug(log_tag,
+ "Failed to capture mouse when begin click.");
return;
}
this->down_point_ = args.GetPoint();
@@ -120,7 +121,8 @@ void ClickDetector::SetState(ClickState state) {
UnreachableCode();
}
};
- log::Debug("Click state changed, new state: {}.", to_string(state));
+ log::TagDebug(log_tag, "Click state changed, new state: {}.",
+ to_string(state));
#endif
state_ = state;