Commit 5bbdd56a authored by Nicolas Jager's avatar Nicolas Jager

debug : adds DEBUG_ON flag

- if DEBUG_ON is set to true, the console can be opened by
  hitting F5. Otherwise the console cannot be opened by the user.

Change-Id: Icceb8e708cca14ec0d73e4267e5c461ca8961b20
Tuleap: #790
parent bee4271f
......@@ -26,4 +26,5 @@ public enum class ContactStatus {
READY
};
constexpr bool DEBUG_ON = false;
}
\ No newline at end of file
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment