Skip to content

Commit 15e864a

Browse files
committed
Code Quality: Fixed expander for startup settings
1 parent 2c251d9 commit 15e864a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Files.App/Views/Settings/GeneralPage.xaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</wctcontrols:SettingsCard>
8585

8686
<!-- Startup settings -->
87-
<wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=StartupSettings}">
87+
<wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=StartupSettings}" IsExpanded="False">
8888
<wctcontrols:SettingsExpander.HeaderIcon>
8989
<FontIcon Glyph="&#xE7E8;" />
9090
</wctcontrols:SettingsExpander.HeaderIcon>
@@ -98,7 +98,7 @@
9898
Content="{helpers:ResourceString Name=SettingsOnStartupOpenASpecificPage/Content}"
9999
IsSelected="{x:Bind ViewModel.OpenASpecificPageOnStartup, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
100100
</uc:ComboBoxEx>
101-
<wctcontrols:SettingsExpander.Items>
101+
<wctcontrols:SettingsExpander.ItemsHeader>
102102
<Grid
103103
Padding="8"
104104
HorizontalAlignment="Stretch"
@@ -168,7 +168,8 @@
168168
</ListView.ItemTemplate>
169169
</ListView>
170170
</Grid>
171-
171+
</wctcontrols:SettingsExpander.ItemsHeader>
172+
<wctcontrols:SettingsExpander.Items>
172173
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=OpenTabInExistingInstance}">
173174
<ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=OpenTabInExistingInstance}" IsOn="{x:Bind ViewModel.OpenTabInExistingInstance, Mode=TwoWay}" />
174175
</wctcontrols:SettingsCard>

0 commit comments

Comments
 (0)