- fix driver loading

master
Simon G 5 years ago
parent e3b62446df
commit bd382997eb
  1. 8
      Mystify/ViewModels/MainWindowViewModel.cs

@ -45,9 +45,13 @@ namespace Mystify.ViewModels
Filters = new List<FileDialogFilter> {new() {Extensions = new List<string> {DriverLoader.DRIVER_FILE_EXTENSION}, Name = "Mystify Driver"}}
};
await openFileDialog.ShowAsync(_mainWindow);
string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0];
_mainModel?.LoadDriverAndDevice(openFileDialog.Directory);
_mainModel?.LoadDriverAndDevice(driverPath);
RaisePropertyChanged(() => SelectedDeviceText);
RaisePropertyChanged(() => Channels);
RaisePropertyChanged(() => Controllables);
});
public ICommand AllocateControllableCommand =>

Loading…
Cancel
Save