Skip to content

Commit

Permalink
Merge pull request #670 from unoplatform/mergify/bp/legacy/3x/pr-656
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 authored Jul 22, 2023
2 parents fc3ece3 + a1e573e commit 2680fbc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ private void OnNavigationItemInvoked(MUXC.NavigationView sender, MUXC.Navigation
{
ShellNavigateTo(sample, trySynchronizeCurrentItem: false);
}
else if (e.IsSettingsInvoked)
{
_shell.ActivateDebugPanel();
}
}

private void AddNavigationItems(MUXC.NavigationView nv)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
utu:SafeArea.Insets="VisibleBounds"
x:Name="NavigationViewControl"
OpenPaneLength="260"
IsSettingsVisible="False"
IsSettingsVisible="True"
IsPaneOpen="True"
IsPaneVisible="True"
IsPaneToggleButtonVisible="False"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,17 @@ public Shell()

private void OnLoaded(object sender, RoutedEventArgs e)
{
#if DEBUG
this.FindName("DebugPanel"); // materialized x:Load=false element
#if DEBUG && false
ActivateDebugPanel();
#endif
SetDarkLightToggleInitialState();
}

internal void ActivateDebugPanel()
{
this.FindName("DebugPanel"); // materialize x:Load=false element
}

private void SetDarkLightToggleInitialState()
{
#if !IS_WINUI
Expand Down

0 comments on commit 2680fbc

Please sign in to comment.