mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 07:15:31 +03:00
Mac: Fixes for ChooseDeviceForm
This commit is contained in:
parent
417dc74887
commit
1e9255c4b6
@ -134,16 +134,16 @@ public class ChooseDeviceForm : EtoDialogBase
|
||||
nameof(UiStrings.SelectDevice));
|
||||
|
||||
FormStateController.SaveFormState = FormStateController.RestoreFormState = true;
|
||||
FormStateController.DefaultExtraLayoutSize = new Size(50, 0);
|
||||
FormStateController.DefaultExtraLayoutSize = new Size(150, 100);
|
||||
|
||||
LayoutController.Content = L.Column(
|
||||
L.Row(
|
||||
[
|
||||
..driverElements,
|
||||
C.IconButton(_iconProvider.GetIcon("large_tiles_small")!, () => SetListView(false))
|
||||
.Visible(_textListVis),
|
||||
.Visible(_textListVis).Width(40),
|
||||
C.IconButton(_iconProvider.GetIcon("text_align_justify_small")!, () => SetListView(true))
|
||||
.Visible(!_textListVis)
|
||||
.Visible(!_textListVis).Width(40)
|
||||
]
|
||||
),
|
||||
_deviceIconList.Control.NaturalSize(150, 100).Scale().Visible(!_textListVis),
|
||||
@ -250,11 +250,6 @@ public class ChooseDeviceForm : EtoDialogBase
|
||||
}
|
||||
DeviceList.Add(device);
|
||||
UpdateDevices(false);
|
||||
if (DeviceList.Count == 1)
|
||||
{
|
||||
_deviceIconList.Selection = ListSelection.Of(DeviceList[0]);
|
||||
_deviceTextList.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user