public ModeSelectionVM(MainWindowVM mainVM)
        {
            _mainVM = mainVM;

            InstallCommand = ReactiveCommand.Create(
                execute: () =>
            {
                var path = mainVM.Settings.Installer.LastInstalledListLocation;
                if (path == default || !path.Exists)
                {
                    path = UIUtils.OpenFileDialog($"*{Consts.ModListExtension}|*{Consts.ModListExtension}");
                }
                _mainVM.OpenInstaller(path);
            });

            CompileCommand = ReactiveCommand.Create(() => mainVM.NavigateTo(mainVM.Compiler.Value));
            BrowseCommand  = ReactiveCommand.Create(() => mainVM.NavigateTo(mainVM.Gallery.Value));
        }
        public ModeSelectionVM(MainWindowVM mainVM)
        {
            _mainVM = mainVM;

            InstallCommand = ReactiveCommand.Create(
                execute: () =>
            {
                var path = mainVM.Settings.Installer.LastInstalledListLocation;
                if (string.IsNullOrWhiteSpace(path) ||
                    !File.Exists(path))
                {
                    path = UIUtils.OpenFileDialog($"*{ExtensionManager.Extension}|*{ExtensionManager.Extension}");
                }
                _mainVM.OpenInstaller(path);
            });

            CompileCommand = ReactiveCommand.Create(() => mainVM.ActivePane = mainVM.Compiler.Value);
            BrowseCommand  = ReactiveCommand.Create(() => mainVM.ActivePane = mainVM.Gallery.Value);
        }