Skip to content

Commit ffd8772

Browse files
committed
Addressing initial feedback
1 parent 4a05a32 commit ffd8772

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Flow.Launcher.Core/Plugin/PluginsLoader.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Flow.Launcher.Infrastructure.UserSettings;
1212
using Flow.Launcher.Plugin;
1313
using Flow.Launcher.Plugin.SharedCommands;
14-
using System.Diagnostics;
1514
using Stopwatch = Flow.Launcher.Infrastructure.Stopwatch;
1615

1716
namespace Flow.Launcher.Core.Plugin

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public async Task SetHotkey(HotkeyModel keyModel, bool triggerValidate = true)
101101
}
102102
}
103103

104-
public void SetHotkey(string keyStr, bool triggerValidate = true)
104+
public async Task SetHotkey(string keyStr, bool triggerValidate = true)
105105
{
106106
_ = SetHotkey(new HotkeyModel(keyStr), triggerValidate);
107107
}
@@ -116,4 +116,4 @@ private void tbHotkey_LostFocus(object sender, RoutedEventArgs e)
116116
tbMsg.Foreground = tbMsgForegroundColorOriginal;
117117
}
118118
}
119-
}
119+
}

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private bool ActionKeywordMatch(Query query, Settings.ActionKeyword allowedActio
9494
keyword == Settings.IndexSearchActionKeyword,
9595
Settings.ActionKeyword.QuickAccessActionKeyword => Settings.QuickAccessKeywordEnabled &&
9696
keyword == Settings.QuickAccessActionKeyword,
97-
_ => false
97+
_ => throw new NotImplementedException()
9898
};
9999
}
100100

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ public List<Result> LoadContextMenus(Result selectedResult)
376376
new Result
377377
{
378378
Title = context.API.GetTranslation("flowlauncher_plugin_cmd_run_as_different_user"),
379-
Action = c =>
379+
AsyncAction = async c =>
380380
{
381-
_ = Task.Run(() => Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title)));
381+
Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title));
382382
return true;
383383
},
384384
IcoPath = "Images/user.png"

0 commit comments

Comments
 (0)