aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/RootControl.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-21 20:42:54 +0800
committercrupest <crupest@outlook.com>2021-11-21 20:42:54 +0800
commit3f8e493423b7cfe96ab53531078b803da7beccbe (patch)
treea0a998c6b2b696eaf4f58870224fef31e65e3dbd /src/ui/controls/RootControl.cpp
parent73b90d4fe6c93a288ca6514432fe1e83ddcf4928 (diff)
downloadcru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.gz
cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.bz2
cru-3f8e493423b7cfe96ab53531078b803da7beccbe.zip
...
Diffstat (limited to 'src/ui/controls/RootControl.cpp')
-rw-r--r--src/ui/controls/RootControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp
index d89982c5..278649de 100644
--- a/src/ui/controls/RootControl.cpp
+++ b/src/ui/controls/RootControl.cpp
@@ -41,7 +41,7 @@ void RootControl::SetGainFocusOnCreateAndDestroyWhenLoseFocus(bool value) {
gain_focus_on_create_and_destroy_when_lose_focus_event_guard_ +=
native_window->FocusEvent()->AddHandler(
[native_window](platform::gui::FocusChangeType type) {
- if (type == platform::gui::FocusChangeType::Lost) {
+ if (type == platform::gui::FocusChangeType::Lose) {
native_window->Close();
}
});