diff options
author | crupest <crupest@outlook.com> | 2018-11-07 20:46:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-07 20:46:57 +0800 |
commit | 6f76a0ad3df99ea0d99623347d019536cc07e920 (patch) | |
tree | b44d8cd6f8f4ffbbb6451d42ba9a6b4d98828aec /src/main.cpp | |
parent | e2efeb22595b263f6eac5563b163a2574aa2f0dc (diff) | |
download | cru-6f76a0ad3df99ea0d99623347d019536cc07e920.tar.gz cru-6f76a0ad3df99ea0d99623347d019536cc07e920.tar.bz2 cru-6f76a0ad3df99ea0d99623347d019536cc07e920.zip |
Fix bugs in release mode.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5fd59ede..f2e65dd2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -101,11 +101,12 @@ int APIENTRY wWinMain( inner_layout->AddChild(TextBlock::Create(L"Toggle debug border")); const auto toggle_button = ToggleButton::Create(); +#ifdef CRU_DEBUG_LAYOUT toggle_button->toggle_event.AddHandler([&window](cru::ui::events::ToggleEventArgs& args) { window.SetDebugLayout(args.GetNewState()); }); - +#endif inner_layout->AddChild(toggle_button); layout->AddChild(inner_layout); } |