aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
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);
}