diff --git a/Mystify/MainModel.cs b/Mystify/MainModel.cs index fdc0ff2..a6c9008 100644 --- a/Mystify/MainModel.cs +++ b/Mystify/MainModel.cs @@ -35,7 +35,7 @@ namespace Mystify public bool UseMidiView { get; set; } - public void LoadDriverAndDevice(string driverPath, bool useMidiView) + public void LoadDriverAndDevice(string driverPath) { IDriver? driver = _driverLoader.Load(driverPath); @@ -45,7 +45,7 @@ namespace Mystify _device = _deviceFactory.Create(driver); _controllableCollector = _controllableCollectorFactory.Create(); - _device.StartCommunication(useMidiView); + _device.StartCommunication(UseMidiView); } public void MapControllable() diff --git a/Mystify/ViewModels/MainWindowViewModel.cs b/Mystify/ViewModels/MainWindowViewModel.cs index bb251c5..333510f 100644 --- a/Mystify/ViewModels/MainWindowViewModel.cs +++ b/Mystify/ViewModels/MainWindowViewModel.cs @@ -74,7 +74,7 @@ namespace Mystify.ViewModels string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0]; - _mainModel?.LoadDriverAndDevice(driverPath, UseMidiView); + _mainModel?.LoadDriverAndDevice(driverPath); RaisePropertyChanged(() => SelectedDeviceText); RaisePropertyChanged(() => Channels);