Skip to content

Commit

Permalink
fix: Exception when accessing extensions and settings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Aug 6, 2024
1 parent e7a1bd1 commit 20b467e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Beutl/Pages/ExtensionsPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
</TextBox>
</ui:NavigationView.PaneCustomContent>

<ui:Frame x:Name="frame" />
<!-- InvalidCastException対策に{x:Null}を指定 -->
<ui:Frame DataContext="{x:Null}" x:Name="frame" />
</ui:NavigationView>

<StackPanel HorizontalAlignment="Center"
Expand Down
3 changes: 2 additions & 1 deletion src/Beutl/Pages/SettingsPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<Setter Property="CornerRadius" Value="{DynamicResource NavigationViewContentGridCornerRadius}" />
</Style>
</ui:NavigationView.Styles>
<ui:Frame x:Name="frame" />
<!-- InvalidCastException対策に{x:Null}を指定 -->
<ui:Frame DataContext="{x:Null}" x:Name="frame" />
</ui:NavigationView>
</UserControl>

0 comments on commit 20b467e

Please sign in to comment.