Skip to content

Commit 3a7dada

Browse files
committed
fix: close #901
1 parent f9f94b0 commit 3a7dada

File tree

9 files changed

+3
-13
lines changed

9 files changed

+3
-13
lines changed

Ui/Model/Protocol/RDP.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using _1RM.Utils;
1212
using Shawn.Utils.Wpf;
1313
using MSTSCLib;
14-
using System.ComponentModel.DataAnnotations;
1514
using System.Reflection;
1615
using AxMSTSCLib;
1716
using _1RM.View.Host.ProtocolHosts;

Ui/Service/ConfigurationService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
using _1RM.Service.DataSource;
1212
using _1RM.Service.DataSource.Model;
1313
using _1RM.Utils;
14-
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
1514
using Shawn.Utils;
1615
using Shawn.Utils.Wpf;
1716
using VariableKeywordMatcher.Provider.DirectMatch;
1817
using SetSelfStartingHelper = _1RM.Utils.SetSelfStartingHelper;
19-
using Google.Protobuf.WellKnownTypes;
2018
using System.Windows.Media;
2119

2220
namespace _1RM.Service

Ui/Service/DataSource/DataSourceService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using _1RM.Service.DataSource.Model;
1313
using _1RM.Utils;
1414
using _1RM.View;
15-
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
1615
using Newtonsoft.Json;
1716
using Shawn.Utils;
1817
using Shawn.Utils.Wpf.FileSystem;

Ui/Utils/Tracing/MsAppCenterHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Diagnostics;
44
using System.Linq;
55
using _1RM.Utils.WindowsApi;
6-
using Google.Protobuf.WellKnownTypes;
76
using Microsoft.AppCenter;
87
using Microsoft.AppCenter.Analytics;
98
using Microsoft.AppCenter.Crashes;

Ui/Utils/WindowsSdk/PasswordVaultManager/PasswordVaultManagerFileSystem.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.IO;
33
using System.Security.Cryptography;
44
using System.Threading.Tasks;
5-
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
65

76
namespace _1RM.Utils.WindowsSdk.PasswordVaultManager
87
{

Ui/View/Editor/Forms/AlternativeCredential/AlternativeCredentialEditViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.IO;
66
using System.Linq;
77
using System.Windows;
8-
using System.Xml.Linq;
98
using _1RM.Model.Protocol;
109
using _1RM.Model.Protocol.Base;
1110
using _1RM.Service;

Ui/View/Host/ProtocolHosts/HostBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Windows;
44
using System.Windows.Controls;
5-
using System.Windows.Controls.Ribbon;
65
using System.Windows.Data;
76
using System.Windows.Interop;
87
using _1RM.Model;

Ui/View/MainWindowViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
using Stylet;
1515
using _1RM.View.Settings.General;
1616
using SetSelfStartingHelper = _1RM.Utils.SetSelfStartingHelper;
17-
using _1RM.Service.DataSource.DAO.Dapper;
1817
using Shawn.Utils;
19-
using Shawn.Utils.Wpf.Image;
2018

2119
namespace _1RM.View
2220
{

Ui/View/ServerList/ServerListPageViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public void RefreshCollectionViewSource(bool force = false)
491491

492492
var tmp = TagAndKeywordEncodeHelper.DecodeKeyword(filter);
493493
TagFilters = tmp.TagFilterList;
494-
var matchResults = TagAndKeywordEncodeHelper.MatchKeywords(servers.Select(x => x.Server).ToList(), tmp, false);
494+
var matchResults = TagAndKeywordEncodeHelper.MatchKeywords(servers.Select(x => x.Server).ToList(), tmp, true);
495495
for (int i = 0; i < servers.Count; i++)
496496
{
497497
var vm = servers[i];
@@ -519,8 +519,8 @@ public void RefreshCollectionViewSource(bool force = false)
519519
Execute.OnUIThread(() =>
520520
{
521521
// MainFilterString changed -> refresh view source -> calc visible in `ServerListItemSource_OnFilter`
522-
if ((this.View as ServerListPageView)?.LvServerCards.ItemsSource != null)
523-
CollectionViewSource.GetDefaultView((this.View as ServerListPageView)!.LvServerCards.ItemsSource).Refresh();
522+
if (this.View is ServerListPageView view && view.LvServerCards.ItemsSource != null)
523+
CollectionViewSource.GetDefaultView(view.LvServerCards.ItemsSource).Refresh();
524524
// invoke ServerListPageView.cs => ServerListItemSource_OnFilter
525525
});
526526
}

0 commit comments

Comments
 (0)