Skip to content
Snippets Groups Projects
Commit 5bbdd56a authored by Nicolas Jager's avatar Nicolas Jager
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -26,4 +26,5 @@ public enum class ContactStatus { ...@@ -26,4 +26,5 @@ public enum class ContactStatus {
READY READY
}; };
constexpr bool DEBUG_ON = false;
} }
\ No newline at end of file
...@@ -107,6 +107,7 @@ MainPage::MainPage() ...@@ -107,6 +107,7 @@ MainPage::MainPage()
void void
MainPage::OnKeyDown(KeyRoutedEventArgs^ e) MainPage::OnKeyDown(KeyRoutedEventArgs^ e)
{ {
if (DEBUG_ON)
if (e->Key == VirtualKey::F5) { if (e->Key == VirtualKey::F5) {
_outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width; _outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width;
_outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen; _outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment