Skip to content

Commit 435144b

Browse files
authored
Merge branch 'dev' into explorerMerge
2 parents e9d8579 + b0297d3 commit 435144b

File tree

10 files changed

+315
-547
lines changed

10 files changed

+315
-547
lines changed

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<ItemGroup>
5656
<PackageReference Include="Droplex" Version="1.4.1" />
5757
<PackageReference Include="FSharp.Core" Version="6.0.6" />
58-
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.1.3" />
58+
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.1" />
5959
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
6060
</ItemGroup>
6161

Flow.Launcher.Test/Plugins/ProgramTest.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

Flow.Launcher/SettingWindow.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@
994994
TextAlignment="Left" />
995995
<DockPanel DockPanel.Dock="Right">
996996
<TextBox
997+
Loaded="Plugin_GotFocus"
997998
Name="pluginFilterTxb"
998999
Width="150"
9991000
Height="34"
@@ -1428,6 +1429,7 @@
14281429
DockPanel.Dock="Right"
14291430
FontSize="14"
14301431
KeyDown="PluginStoreFilterTxb_OnKeyDown"
1432+
Loaded="PluginStore_GotFocus"
14311433
LostFocus="RefreshPluginStoreEventHandler"
14321434
Text=""
14331435
TextAlignment="Left"

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,5 +562,15 @@ private void StoreListItem_Click(object sender, RoutedEventArgs e)
562562
};
563563

564564
}
565+
566+
private void PluginStore_GotFocus(object sender, RoutedEventArgs e)
567+
{
568+
Keyboard.Focus(pluginStoreFilterTxb);
569+
}
570+
571+
private void Plugin_GotFocus(object sender, RoutedEventArgs e)
572+
{
573+
Keyboard.Focus(pluginFilterTxb);
574+
}
565575
}
566576
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181

8282
<!-- Dialogs -->
8383
<system:String x:Key="flowlauncher_plugin_program_disable_dlgtitle_success">Success</system:String>
84+
<system:String x:Key="flowlauncher_plugin_program_disable_dlgtitle_error">Error</system:String>
8485
<system:String x:Key="flowlauncher_plugin_program_disable_dlgtitle_success_message">Successfully disabled this program from displaying in your query</system:String>
8586
<system:String x:Key="flowlauncher_plugin_program_run_as_administrator_not_supported_message">This app is not intended to be run as administrator</system:String>
87+
<system:String x:Key="flowlauncher_plugin_program_run_failed">Unable to run {0}</system:String>
8688

8789
</ResourceDictionary>

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using System.Windows.Controls;
8+
using Flow.Launcher.Infrastructure;
89
using Flow.Launcher.Infrastructure.Logger;
910
using Flow.Launcher.Infrastructure.Storage;
1011
using Flow.Launcher.Plugin.Program.Programs;
@@ -225,9 +226,9 @@ public static void StartProcess(Func<ProcessStartInfo, Process> runProcess, Proc
225226
}
226227
catch (Exception)
227228
{
228-
var name = "Plugin: Program";
229-
var message = $"Unable to start: {info.FileName}";
230-
Context.API.ShowMsg(name, message, string.Empty);
229+
var title = Context.API.GetTranslation("flowlauncher_plugin_program_disable_dlgtitle_error");
230+
var message = string.Format(Context.API.GetTranslation("flowlauncher_plugin_program_run_failed"), info.FileName);
231+
Context.API.ShowMsg(title, string.Format(message, info.FileName), string.Empty);
231232
}
232233
}
233234

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

Lines changed: 0 additions & 42 deletions
This file was deleted.

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

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)