Skip to content

Commit 676e366

Browse files
authored
Removed the set size on the number box under settings (#3609)
1 parent 7b1e066 commit 676e366

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Files/Views/SettingsPages/Experimental.xaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
x:Class="Files.SettingsPages.Experimental"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
6+
xmlns:converters="using:Files.Converters"
57
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
68
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
79
xmlns:settingsviewmodels="using:Files.ViewModels.SettingsViewModels"
8-
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
9-
xmlns:converters="using:Files.Converters"
1010
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
1111
mc:Ignorable="d">
1212
<Page.DataContext>
@@ -52,19 +52,18 @@
5252
x:Uid="SettingsUsePreemptiveCache"
5353
Header="Use preemptive cache (preload entries in child directories on navigation)"
5454
HeaderTemplate="{StaticResource CustomHeaderStyle}"
55-
IsOn="{Binding UsePreemptiveCache, Mode=TwoWay}"
56-
IsEnabled="{Binding UseFileListCache, Mode=OneWay}"/>
55+
IsEnabled="{Binding UseFileListCache, Mode=OneWay}"
56+
IsOn="{Binding UsePreemptiveCache, Mode=TwoWay}" />
5757

5858
<controls:NumberBox
5959
x:Uid="PreemptiveCacheParallelLimits"
6060
HorizontalAlignment="Left"
6161
Header="Preemptive cache parallel limit (smaller numbers should work better for hard drives)"
62-
SpinButtonPlacementMode="Inline"
63-
Width="450"
64-
Value="{Binding PreemptiveCacheParallelLimit, Mode=TwoWay}"
65-
Minimum="1"
6662
HeaderTemplate="{StaticResource CustomHeaderStyle}"
67-
IsEnabled="{x:Bind converters:MultiBooleanConverter.AndConvert(viewModel.UseFileListCache, viewModel.UsePreemptiveCache), Mode=OneWay}"/>
63+
IsEnabled="{x:Bind converters:MultiBooleanConverter.AndConvert(viewModel.UseFileListCache, viewModel.UsePreemptiveCache), Mode=OneWay}"
64+
Minimum="1"
65+
SpinButtonPlacementMode="Inline"
66+
Value="{Binding PreemptiveCacheParallelLimit, Mode=TwoWay}" />
6867

6968
<ToggleSwitch
7069
x:Uid="SettingsShowMultiselectOption"

0 commit comments

Comments
 (0)