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
...@@ -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,10 +107,11 @@ MainPage::MainPage() ...@@ -107,10 +107,11 @@ MainPage::MainPage()
void void
MainPage::OnKeyDown(KeyRoutedEventArgs^ e) MainPage::OnKeyDown(KeyRoutedEventArgs^ e)
{ {
if (e->Key == VirtualKey::F5) { if (DEBUG_ON)
_outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width; if (e->Key == VirtualKey::F5) {
_outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen; _outerSplitView_->OpenPaneLength = Window::Current->Bounds.Width;
} _outerSplitView_->IsPaneOpen = !_outerSplitView_->IsPaneOpen;
}
} }
void RingClientUWP::MainPage::_toggleSmartBoxButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) void RingClientUWP::MainPage::_toggleSmartBoxButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
......
Supports Markdown
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