Skip to content

Commit ca865fa

Browse files
committed
Default host devices are now named correctly.
1 parent 0285860 commit ca865fa

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</MenuItem>
3939
<MenuItem Header="_Edit">
4040
<MenuItem Header="_Emulated Devices..." Name="EditEmulatedDevices" Click="EditEmulatedDevices_Click" Icon="{DynamicResource Icon.EmulatedDevices}"/>
41-
<MenuItem Header="_Host Devices..." Name="EditHostDevices" Click="EditHostDevices_Click" Icon="{DynamicResource Icon.HostDevices}"/>
41+
<MenuItem Header="_Host Devices..." Name="EditHostDevices" Click="EditDefaultHostDevices_Click" Icon="{DynamicResource Icon.HostDevices}"/>
4242
<MenuItem Header="_Metadata..." Name="EditMetadata" Click="EditMetadata_Click" Icon="{DynamicResource Icon.Metadata}" />
4343
<MenuItem Header="_Tags..." Name="EditTags" Click="EditTags_Click" Icon="{DynamicResource Icon.EditTags}" />
4444
</MenuItem>

MainWindow.xaml.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private DynamicInputPackViewModel InputPack
3939
private string _saved_document = null;
4040

4141
private Window _edit_emulated_devices_window;
42-
private Window _edit_host_devices_window;
42+
private Window _edit_default_host_devices_window;
4343
private Window _edit_metadata_window;
4444
private Window _edit_tags_window;
4545

@@ -48,13 +48,13 @@ private void QuitProgram_Click(object sender, RoutedEventArgs e)
4848
this.Close();
4949
}
5050

51-
private void EditHostDevices_Click(object sender, RoutedEventArgs e)
51+
private void EditDefaultHostDevices_Click(object sender, RoutedEventArgs e)
5252
{
53-
_edit_host_devices_window?.Close();
53+
_edit_default_host_devices_window?.Close();
5454

55-
_edit_host_devices_window = new Window
55+
_edit_default_host_devices_window = new Window
5656
{
57-
Title = "Editing Host Devices",
57+
Title = "Editing Default Host Devices",
5858
Icon = ResourceShapePathToImage("Icon.HostDevices"),
5959
ResizeMode = ResizeMode.CanResize,
6060
SizeToContent = SizeToContent.Manual,
@@ -64,7 +64,7 @@ private void EditHostDevices_Click(object sender, RoutedEventArgs e)
6464
};
6565

6666
UpdateEditWindows();
67-
_edit_host_devices_window.Show();
67+
_edit_default_host_devices_window.Show();
6868
}
6969

7070
private void EditEmulatedDevices_Click(object sender, RoutedEventArgs e)
@@ -237,10 +237,10 @@ private void UpdateEditWindows()
237237
_edit_emulated_devices_window.Content = user_control;
238238
}
239239

240-
if (_edit_host_devices_window != null)
240+
if (_edit_default_host_devices_window != null)
241241
{
242242
var user_control = new Controls.EditHostDevices { DataContext = new HostDeviceKeyViewModel { HostDevices = InputPack.HostDevices, Tags = InputPack.Tags } };
243-
_edit_host_devices_window.Content = user_control;
243+
_edit_default_host_devices_window.Content = user_control;
244244
}
245245

246246
if (_edit_metadata_window != null)

0 commit comments

Comments
 (0)