From 3f8e493423b7cfe96ab53531078b803da7beccbe Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 21 Nov 2021 20:42:54 +0800 Subject: ... --- src/ui/controls/RootControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/controls/RootControl.cpp') 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(); } }); -- cgit v1.2.3