diff --git a/Globals.h b/Globals.h index 56533c7b66340a85e62a692183c43e19f4c6e707..c92d2dd4c42b1ed995db2bbb70d90e75fddac3a2 100644 --- a/Globals.h +++ b/Globals.h @@ -26,4 +26,5 @@ public enum class ContactStatus { READY }; +constexpr bool DEBUG_ON = false; } \ No newline at end of file diff --git a/MainPage.xaml.cpp b/MainPage.xaml.cpp index a91d19269ec8c59e94041a4976cadc67ae6677b0..f0ef381b8f249601b8a00c7cf1465197650bac99 100644 --- a/MainPage.xaml.cpp +++ b/MainPage.xaml.cpp @@ -107,10 +107,11 @@ MainPage::MainPage() void MainPage::OnKeyDown(KeyRoutedEventArgs^ e) { - if (e->Key == VirtualKey::F5) { - _outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width; - _outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen; - } + if (DEBUG_ON) + if (e->Key == VirtualKey::F5) { + _outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width; + _outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen; + } } void RingClientUWP::MainPage::_toggleSmartBoxButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)