Skip to content

Commit

Permalink
Merge pull request #96 from OpenIPC/ui-updates
Browse files Browse the repository at this point in the history
set some default values
  • Loading branch information
mikecarr authored Mar 1, 2025
2 parents fd5de17 + b4ac073 commit 2b56035
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
4 changes: 4 additions & 0 deletions OpenIPC_Config/ViewModels/FirmwareTabViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,13 @@ private void ClearForm()
SelectedManufacturer = string.Empty;
SelectedDevice = string.Empty;
SelectedFirmware = string.Empty;
SelectedFirmwareBySoc = string.Empty;
ManualFirmwareFile = string.Empty;

IsFirmwareSelected = false;
IsManufacturerSelected = false;
IsManualUpdateEnabled = true;

UpdateCanExecuteCommands();
}

Expand Down
19 changes: 11 additions & 8 deletions OpenIPC_Config/Views/FirmwareTabView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,23 @@
<TextBlock Text="Local" Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center" />

<Button Grid.Row="0" Grid.Column="1" Content="Select Firmware"
<TextBlock Grid.Row="0" Grid.Column="1"
Margin="5,0,0,0"
Padding="5"
Background="#F0F0F0"
Width="400"
Height="25"
IsEnabled="{Binding CanUseSelectFirmware}"
Text="{Binding Path=ManualFirmwareFile, Mode=TwoWay}" />

<Button Grid.Row="0" Grid.Column="2" Content="..."
Margin="5,5,0,0"
VerticalAlignment="Center"
Background="LightGray"
IsEnabled="{Binding CanUseSelectFirmware}"
Command="{Binding SelectFirmwareCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}" />

<TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
Margin="0,5,0,0"
VerticalAlignment="Center"
Background="#F0F0F0"
Width="400"
IsEnabled="{Binding CanUseSelectFirmware}"
Text="{Binding Path=ManualFirmwareFile, Mode=TwoWay}" />
</Grid>
</Border>

Expand Down

0 comments on commit 2b56035

Please sign in to comment.