Device visualizer - Never return NaN measurements

Device logical layout picker - Fixed NRE
Surface manager - Improve thread safety
This commit is contained in:
Robert committed 2023-10-11 20:53:21 +02:00
1 parent 7e72e22295
commit 38eb0ff460
4 files changed
+75 -90

No files matched your search

@@ -10,8 +10,6 @@ namespace Artemis.UI.Screens.Device;
public partial class DeviceLogicalLayoutDialogView : ReactiveUserControl<DeviceLogicalLayoutDialogViewModel>
{
private readonly AutoCompleteBox _autoCompleteBox;
public DeviceLogicalLayoutDialogView()
{
InitializeComponent();
@@ -23,8 +21,8 @@ public partial class DeviceLogicalLayoutDialogView : ReactiveUserControl<DeviceL
private async Task DelayedAutoFocus()
{
await Task.Delay(200);
_autoCompleteBox.Focus();
_autoCompleteBox.PopulateComplete();
RegionsAutoCompleteBox.Focus();
RegionsAutoCompleteBox.PopulateComplete();
}
private bool SearchRegions(string search, object item)