Skip to content

Commit cecc412

Browse files
committed
Refactor build task configuration and update ComboBox bindings in views; add entitlements plist for macOS
1 parent 11dafc2 commit cecc412

File tree

6 files changed

+28
-11
lines changed

6 files changed

+28
-11
lines changed

.vscode/tasks.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"tasks": [
44
{
55
"label": "build",
6-
"type": "dotnet",
7-
"task": "build",
8-
"args": ["${workspaceFolder}/Retroworks.RCBus/Retroworks.RCBus.csproj"],
6+
"type": "shell",
7+
"command": "dotnet",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/Retroworks.RCBus/Retroworks.RCBus.csproj"
11+
],
912
"group": {
1013
"kind": "build",
1114
"isDefault": true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.device.serial</key>
6+
<true/>
7+
<key>com.apple.security.device.usb</key>
8+
<true/>
9+
</dict>
10+
</plist>

Retroworks.RCBus/Retroworks.RCBus.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<Description>RCBus toolkit with VT100 terminal for emulator and serial port.</Description>
1616
</PropertyGroup>
1717

18+
<PropertyGroup>
19+
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
20+
</PropertyGroup>
21+
1822
<ItemGroup>
1923
<AvaloniaResource Include="Assets\**" />
2024
</ItemGroup>

Retroworks.RCBus/Views/EmulatorPageView.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
IsEnabled="{Binding !IsPower}"
5353
ItemsSource="{Binding Devices}"
5454
PlaceholderText="Select device"
55-
SelectedValue="{Binding Device}">
55+
SelectedItem="{Binding Device}">
5656
<ComboBox.ItemTemplate>
5757
<DataTemplate>
5858
<TextBlock Text="{Binding Name}" />

Retroworks.RCBus/Views/SerialPageView.axaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
IsEnabled="{Binding !IsPower}"
5151
ItemsSource="{Binding SerialPorts}"
5252
PlaceholderText="Select port"
53-
SelectedValue="{Binding SerialPort}">
53+
SelectedItem="{Binding SerialPort}">
5454
<i:Interaction.Behaviors>
5555
<ia:EventTriggerBehavior EventName="DropDownOpened">
5656
<ia:InvokeCommandAction Command="{Binding UpdateSerialPortsCommand}" />
@@ -71,7 +71,7 @@
7171
IsEnabled="{Binding !IsPower}"
7272
ItemsSource="{Binding BaudRates}"
7373
PlaceholderText="Select port speed"
74-
SelectedValue="{Binding SerialSpeed}" />
74+
SelectedItem="{Binding SerialSpeed}" />
7575

7676
<Label
7777
Grid.Row="2"
@@ -86,7 +86,7 @@
8686
IsEnabled="{Binding !IsPower}"
8787
ItemsSource="{Binding DataBits}"
8888
PlaceholderText="Select data bits"
89-
SelectedValue="{Binding SerialBit}" />
89+
SelectedItem="{Binding SerialBit}" />
9090

9191
<Label
9292
Grid.Row="3"
@@ -101,7 +101,7 @@
101101
IsEnabled="{Binding !IsPower}"
102102
ItemsSource="{Binding ParityTypes}"
103103
PlaceholderText="Select parity"
104-
SelectedValue="{Binding SerialParity}" />
104+
SelectedItem="{Binding SerialParity}" />
105105

106106
<Label
107107
Grid.Row="4"
@@ -116,7 +116,7 @@
116116
IsEnabled="{Binding !IsPower}"
117117
ItemsSource="{Binding StopBits}"
118118
PlaceholderText="Select stop bits"
119-
SelectedValue="{Binding SerialStopBit}" />
119+
SelectedItem="{Binding SerialStopBit}" />
120120

121121
<Label
122122
Grid.Row="5"
@@ -131,7 +131,7 @@
131131
IsEnabled="{Binding !IsPower}"
132132
ItemsSource="{Binding FlowControlTypes}"
133133
PlaceholderText="Select flow control"
134-
SelectedValue="{Binding SerialHandshake}" />
134+
SelectedItem="{Binding SerialHandshake}" />
135135

136136
<Label
137137
Grid.Row="6"

Retroworks.RCBus/Views/SettingsPageView.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
HorizontalAlignment="Stretch"
4343
ItemsSource="{Binding Themes}"
4444
PlaceholderText="Select Theme"
45-
SelectedValue="{Binding ActualTheme}" />
45+
SelectedItem="{Binding ActualTheme}" />
4646
</Grid>
4747
</TabItem>
4848
<TabItem Header="About">

0 commit comments

Comments
 (0)