Skip to content

Commit fc2ce73

Browse files
authored
Merge branch 'dev' into dev3
2 parents 1bf045f + 0b8db59 commit fc2ce73

File tree

13 files changed

+85
-133
lines changed

13 files changed

+85
-133
lines changed

Flow.Launcher.Infrastructure/FileExplorerHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private static IEnumerable<int> GetZOrder(List<dynamic> hWnds)
6868
var numRemaining = hWnds.Count;
6969
PInvoke.EnumWindows((wnd, _) =>
7070
{
71-
var searchIndex = hWnds.FindIndex(x => x.HWND == wnd.Value);
71+
var searchIndex = hWnds.FindIndex(x => new IntPtr(x.HWND) == wnd);
7272
if (searchIndex != -1)
7373
{
7474
z[searchIndex] = index;

Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<ItemGroup>
5555
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
56-
<PackageReference Include="BitFaster.Caching" Version="2.5.2" />
56+
<PackageReference Include="BitFaster.Caching" Version="2.5.3" />
5757
<PackageReference Include="Fody" Version="6.5.5">
5858
<PrivateAssets>all</PrivateAssets>
5959
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Flow.Launcher.Plugin/Result.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -157,27 +157,6 @@ public string PluginDirectory
157157
}
158158
}
159159

160-
/// <inheritdoc />
161-
public override bool Equals(object obj)
162-
{
163-
var r = obj as Result;
164-
165-
var equality = string.Equals(r?.Title, Title) &&
166-
string.Equals(r?.SubTitle, SubTitle) &&
167-
string.Equals(r?.AutoCompleteText, AutoCompleteText) &&
168-
string.Equals(r?.CopyText, CopyText) &&
169-
string.Equals(r?.IcoPath, IcoPath) &&
170-
TitleHighlightData == r.TitleHighlightData;
171-
172-
return equality;
173-
}
174-
175-
/// <inheritdoc />
176-
public override int GetHashCode()
177-
{
178-
return HashCode.Combine(Title, SubTitle, AutoCompleteText, CopyText, IcoPath);
179-
}
180-
181160
/// <inheritdoc />
182161
public override string ToString()
183162
{

Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,5 @@ public async Task GivenVariousJsonText_WhenVariousNamingCase_ThenExpectNotNullRe
6363
})
6464
};
6565

66-
[TestCaseSource(typeof(JsonRPCPluginTest), nameof(ResponseModelsSource))]
67-
public async Task GivenModel_WhenSerializeWithDifferentNamingPolicy_ThenExpectSameResult_Async(JsonRPCQueryResponseModel reference)
68-
{
69-
var camelText = JsonSerializer.Serialize(reference, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });
70-
71-
var pascalText = JsonSerializer.Serialize(reference);
72-
73-
var results1 = await QueryAsync(new Query { Search = camelText }, default);
74-
var results2 = await QueryAsync(new Query { Search = pascalText }, default);
75-
76-
Assert.IsNotNull(results1);
77-
Assert.IsNotNull(results2);
78-
79-
foreach (var ((result1, result2), referenceResult) in results1.Zip(results2).Zip(reference.Result))
80-
{
81-
Assert.AreEqual(result1, result2);
82-
Assert.AreEqual(result1, referenceResult);
83-
84-
Assert.IsNotNull(result1);
85-
Assert.IsNotNull(result1.AsyncAction);
86-
}
87-
}
88-
8966
}
9067
}

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<PackageReference Include="ModernWpfUI" Version="0.9.4" />
100100
<PackageReference Include="NHotkey.Wpf" Version="3.0.0" />
101101
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0" />
102-
<PackageReference Include="SemanticVersioning" Version="3.0.0-beta2" />
102+
<PackageReference Include="SemanticVersioning" Version="3.0.0" />
103103
<PackageReference Include="VirtualizingWrapPanel" Version="2.1.0" />
104104
</ItemGroup>
105105

Flow.Launcher/Languages/de.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
<system:String x:Key="LastQueryPreserved">Letzte Abfrage beibehalten</system:String>
6666
<system:String x:Key="LastQuerySelected">Letzte Abfrage auswählen</system:String>
6767
<system:String x:Key="LastQueryEmpty">Letzte Abfrage leeren</system:String>
68-
<system:String x:Key="LastQueryActionKeywordPreserved">Preserve Last Action Keyword</system:String>
69-
<system:String x:Key="LastQueryActionKeywordSelected">Select Last Action Keyword</system:String>
68+
<system:String x:Key="LastQueryActionKeywordPreserved">Letztes Aktions-Schlüsselwort beibehalten</system:String>
69+
<system:String x:Key="LastQueryActionKeywordSelected">Letztes Aktions-Schlüsselwort auswählen</system:String>
7070
<system:String x:Key="KeepMaxResults">Feste Fensterhöhe</system:String>
7171
<system:String x:Key="KeepMaxResultsToolTip">Die Fensterhöhe ist durch Ziehen nicht anpassbar.</system:String>
7272
<system:String x:Key="maxShowResults">Maximal gezeigte Ergebnisse</system:String>

Flow.Launcher/Languages/es.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
<system:String x:Key="LastQueryPreserved">Mantener la última consulta</system:String>
6666
<system:String x:Key="LastQuerySelected">Seleccionar la última consulta</system:String>
6767
<system:String x:Key="LastQueryEmpty">Limpiar la última consulta</system:String>
68-
<system:String x:Key="LastQueryActionKeywordPreserved">Conservar palabra clave de última acción</system:String>
69-
<system:String x:Key="LastQueryActionKeywordSelected">Seleccionar palabra clave de última acción</system:String>
68+
<system:String x:Key="LastQueryActionKeywordPreserved">Conservar última palabra clave de acción</system:String>
69+
<system:String x:Key="LastQueryActionKeywordSelected">Seleccionar última palabra clave de acción</system:String>
7070
<system:String x:Key="KeepMaxResults">Altura de la ventana fija</system:String>
7171
<system:String x:Key="KeepMaxResultsToolTip">La altura de la ventana no se puede ajustar arrastrando el ratón.</system:String>
7272
<system:String x:Key="maxShowResults">Número máximo de resultados mostrados</system:String>

0 commit comments

Comments
 (0)