From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001
From: giy <giy@omp-system.ru>
Date: Fri, 02 Sep 2022 14:16:56 +0300
Subject: [PATCH] Обновление до версии 2.9.0
---
QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs b/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs
index 19d045b..ba20831 100644
--- a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs
+++ b/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);
}
}
--
Gitblit v1.9.1