mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Device layout dialog - Don't prefill the logical layout
This commit is contained in:
parent
b84fd466d0
commit
f4b42e2cf2
@ -151,8 +151,8 @@
|
||||
|
||||
<mde:Autocomplete Style="{StaticResource MaterialDesignAutocomplete}"
|
||||
AutocompleteSource="{Binding Path=AutocompleteSource}"
|
||||
SearchOnInitialFocus="True"
|
||||
SelectedItem="{Binding SelectedRegion, Mode=TwoWay}"
|
||||
SearchOnInitialFocus="True"
|
||||
Hint="Select a logical layout"
|
||||
Margin="0,16,0,0"
|
||||
FontSize="15"
|
||||
|
||||
@ -24,12 +24,7 @@ namespace Artemis.UI.Screens.Settings.Device
|
||||
Device = device;
|
||||
SelectPhysicalLayout = !device.DeviceProvider.CanDetectPhysicalLayout;
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
AutocompleteSource = new RegionInfoAutocompleteSource();
|
||||
SelectedRegion = AutocompleteSource.Regions.FirstOrDefault(r => r.TwoLetterISORegionName == Device.LogicalLayout ||
|
||||
r.TwoLetterISORegionName == "US" && Device.LogicalLayout == "NA");
|
||||
});
|
||||
Task.Run(() => AutocompleteSource = new RegionInfoAutocompleteSource());
|
||||
}
|
||||
|
||||
public ArtemisDevice Device { get; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user