diff --git a/Mystify/ViewModels/MainWindowViewModel.cs b/Mystify/ViewModels/MainWindowViewModel.cs index 9a8f7c3..c2f3ed0 100644 --- a/Mystify/ViewModels/MainWindowViewModel.cs +++ b/Mystify/ViewModels/MainWindowViewModel.cs @@ -45,9 +45,13 @@ namespace Mystify.ViewModels Filters = new List {new() {Extensions = new List {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 =>