Skip to content

Commit b1e1f71

Browse files
authored
Merge branch 'dev' into FixPluginListFreezing
2 parents 247c970 + 826a422 commit b1e1f71

File tree

10 files changed

+197
-95
lines changed

10 files changed

+197
-95
lines changed

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
9090
</PackageReference>
9191
<PackageReference Include="InputSimulator" Version="1.0.4" />
92-
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
92+
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
9393
<PackageReference Include="ModernWpfUI" Version="0.9.4" />
9494
<PackageReference Include="NHotkey.Wpf" Version="2.1.0" />
9595
<PackageReference Include="NuGet.CommandLine" Version="5.7.2">

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<system:String x:Key="plugin_query_time">Query time:</system:String>
9393
<system:String x:Key="plugin_query_version">| Version</system:String>
9494
<system:String x:Key="plugin_query_web">Website</system:String>
95+
<system:String x:Key="plugin_uninstall">Uninstall</system:String>
9596

9697

9798
<!-- Setting Plugin Store -->

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFramework>net6.0-windows</TargetFramework>
6-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
76
<UseWPF>true</UseWPF>
87
<ProjectGuid>{9B130CC5-14FB-41FF-B310-0A95B6894C37}</ProjectGuid>
98
<AppDesignerFolder>Properties</AppDesignerFolder>
@@ -65,4 +64,19 @@
6564
<Compile Remove="Bookmark.cs" />
6665
</ItemGroup>
6766

67+
<Target Name="CopyDLLs" AfterTargets="Build">
68+
<Message Text="Executing CopyDLLs task" Importance="High" />
69+
<Copy
70+
SourceFiles="$(TargetDir)\runtimes\win-x64\native\SQLite.Interop.dll"
71+
DestinationFolder="$(TargetDir)\x64" />
72+
<Copy
73+
SourceFiles="$(TargetDir)\runtimes\win-x86\native\SQLite.Interop.dll"
74+
DestinationFolder="$(TargetDir)\x86" />
75+
</Target>
76+
77+
<Target Name="DeleteRuntimesFolder" AfterTargets="CopyDLLs">
78+
<Message Text="Deleting runtimes folder" Importance="High" />
79+
<RemoveDir Directories="$(TargetDir)\runtimes" />
80+
</Target>
81+
6882
</Project>

Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
Title="{DynamicResource flowlauncher_plugin_program_directory}"
8-
Width="530"
8+
Width="Auto"
9+
Height="276"
910
Background="{DynamicResource PopuBGColor}"
1011
Foreground="{DynamicResource PopupTextColor}"
1112
ResizeMode="NoResize"
12-
SizeToContent="Height"
13+
SizeToContent="Width"
1314
WindowStartupLocation="CenterScreen">
1415
<WindowChrome.WindowChrome>
1516
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
@@ -69,9 +70,9 @@
6970
TextAlignment="Left"
7071
TextWrapping="WrapWithOverflow" />
7172
</StackPanel>
72-
73-
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
74-
<Grid Width="470">
73+
74+
<StackPanel Margin="0,10,10,0" Orientation="Horizontal">
75+
<Grid>
7576
<Grid.RowDefinitions>
7677
<RowDefinition />
7778
<RowDefinition />
@@ -88,21 +89,22 @@
8889
VerticalAlignment="Center"
8990
FontSize="14"
9091
Text="{DynamicResource flowlauncher_plugin_program_directory}" />
91-
<DockPanel
92-
Grid.Row="0"
93-
Grid.Column="1"
92+
<DockPanel
93+
Grid.Row="0"
94+
Grid.Column="1"
9495
LastChildFill="True">
9596
<Button
96-
Width="70"
97-
HorizontalAlignment="Right"
97+
MinWidth="70"
98+
HorizontalAlignment="Stretch"
9899
Click="BrowseButton_Click"
99-
DockPanel.Dock="Right"
100-
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
100+
Content="{DynamicResource flowlauncher_plugin_program_browse}"
101+
DockPanel.Dock="Right" />
101102
<TextBox
102103
Name="Directory"
104+
MinWidth="300"
103105
Margin="10"
104-
VerticalAlignment="Center"
105-
HorizontalAlignment="Stretch" />
106+
HorizontalAlignment="Stretch"
107+
VerticalAlignment="Center" />
106108
</DockPanel>
107109
<TextBlock
108110
Grid.Row="1"
@@ -112,7 +114,8 @@
112114
VerticalAlignment="Center"
113115
FontSize="14"
114116
Text="{DynamicResource flowlauncher_plugin_program_enabled}" />
115-
<CheckBox x:Name="Chkbox"
117+
<CheckBox
118+
x:Name="Chkbox"
116119
Grid.Row="1"
117120
Grid.Column="1"
118121
Margin="10,0"

Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
Insert file suffixes you want to index. Suffixes should be separated by ';'. (ex>bat;py)
6262
</system:String>
6363
<system:String x:Key="flowlauncher_plugin_program_protocol_tooltip">
64-
Insert protocols of .url files you want to index. Protocols should be separated by ';'. (ex>ftp;netflix)
64+
Insert protocols of .url files you want to index. Protocols should be separated by ';', and should end with "://". (ex>ftp://;mailto://)
6565
</system:String>
6666

6767
<system:String x:Key="flowlauncher_plugin_program_run_as_different_user">Run As Different User</system:String>

Plugins/Flow.Launcher.Plugin.Program/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public async Task InitAsync(PluginInitContext context)
102102
await Task.WhenAll(a, b);
103103

104104
Win32.WatchProgramUpdate(_settings);
105-
UWP.WatchPackageChange();
105+
_ = UWP.WatchPackageChange();
106106
}
107107

108108
public static void IndexWin32Programs()

Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ public override int GetHashCode()
277277
[Serializable]
278278
public class Application : IProgram
279279
{
280-
public string UniqueIdentifier { get; set; }
280+
private string _uid = string.Empty;
281+
public string UniqueIdentifier { get => _uid; set => _uid = value == null ? string.Empty : value.ToLowerInvariant(); }
281282
public string DisplayName { get; set; }
282283
public string Description { get; set; }
283284
public string UserModelId { get; set; }

0 commit comments

Comments
 (0)