|
11 | 11 | <TextBlock FontSize="18"
|
12 | 12 | Classes="bold"
|
13 | 13 | Text="{DynamicResource Text.Fetch.Title}"/>
|
14 |
| - <Grid Margin="0,16,0,0" RowDefinitions="32,32,32,32" ColumnDefinitions="120,*"> |
| 14 | + <Grid Margin="0,16,0,0" RowDefinitions="32,32,Auto,32" ColumnDefinitions="120,*"> |
15 | 15 | <TextBlock Grid.Row="0" Grid.Column="0"
|
16 | 16 | HorizontalAlignment="Right" VerticalAlignment="Center"
|
17 | 17 | Margin="0,0,8,0"
|
|
20 | 20 | Height="28" Padding="8,0"
|
21 | 21 | VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
22 | 22 | ItemsSource="{Binding Remotes}"
|
23 |
| - SelectedItem="{Binding SelectedRemote, Mode=TwoWay}" |
24 |
| - IsEnabled="{Binding !FetchAllRemotes}"> |
| 23 | + SelectedItem="{Binding SelectedRemote, Mode=TwoWay}"> |
| 24 | + <ComboBox.IsEnabled> |
| 25 | + <MultiBinding Converter="{x:Static BoolConverters.And}"> |
| 26 | + <Binding Path="IsFetchAllRemoteVisible"/> |
| 27 | + <Binding Path="FetchAllRemotes" Converter="{x:Static BoolConverters.Not}"/> |
| 28 | + </MultiBinding> |
| 29 | + </ComboBox.IsEnabled> |
25 | 30 | <ComboBox.ItemTemplate>
|
26 | 31 | <DataTemplate x:DataType="{x:Type m:Remote}">
|
27 | 32 | <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center">
|
|
38 | 43 | ToolTip.Tip="--force"/>
|
39 | 44 |
|
40 | 45 | <CheckBox Grid.Row="2" Grid.Column="1"
|
| 46 | + Height="32" |
41 | 47 | Content="{DynamicResource Text.Fetch.AllRemotes}"
|
42 | 48 | IsChecked="{Binding FetchAllRemotes, Mode=TwoWay}"
|
| 49 | + IsVisible="{Binding IsFetchAllRemoteVisible, Mode=OneWay}" |
43 | 50 | ToolTip.Tip="--all"/>
|
44 | 51 |
|
45 | 52 | <CheckBox Grid.Row="3" Grid.Column="1"
|
|
0 commit comments