Наша сборка Qt VS Tools
giy
2022-09-02 ca47896204482bf4a6979e3838bf7f09f61cebeb
QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt VS Tools.
@@ -30,10 +30,11 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Microsoft.VisualStudio.PlatformUI;
namespace QtVsTools.QtMsBuild
{
    public partial class QtModulesPopup : VsToolsDialogWindow
    public partial class QtModulesPopup : DialogWindow
    {
        public class Module
        {
@@ -81,8 +82,7 @@
        private void PopupListBox_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Enter || e.Key == Key.Space) {
                var module = PopupListBox.SelectedItem as Module;
                if (module != null && module.IsEnabled)
                if (PopupListBox.SelectedItem is Module module && module.IsEnabled)
                    module.CheckBox.IsChecked = (module.CheckBox.IsChecked != true);
            }
        }