Addressing initial feedback

This commit is contained in:
Oren Nachman 2022-08-08 11:27:11 -07:00
parent 4a05a32e1f
commit ffd877290d
4 changed files with 5 additions and 6 deletions

View file

@ -11,7 +11,6 @@ using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
using Flow.Launcher.Plugin.SharedCommands;
using System.Diagnostics;
using Stopwatch = Flow.Launcher.Infrastructure.Stopwatch;
namespace Flow.Launcher.Core.Plugin

View file

@ -101,7 +101,7 @@ namespace Flow.Launcher
}
}
public void SetHotkey(string keyStr, bool triggerValidate = true)
public async Task SetHotkey(string keyStr, bool triggerValidate = true)
{
_ = SetHotkey(new HotkeyModel(keyStr), triggerValidate);
}
@ -116,4 +116,4 @@ namespace Flow.Launcher
tbMsg.Foreground = tbMsgForegroundColorOriginal;
}
}
}
}

View file

@ -94,7 +94,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
keyword == Settings.IndexSearchActionKeyword,
Settings.ActionKeyword.QuickAccessActionKeyword => Settings.QuickAccessKeywordEnabled &&
keyword == Settings.QuickAccessActionKeyword,
_ => false
_ => throw new NotImplementedException()
};
}

View file

@ -376,9 +376,9 @@ namespace Flow.Launcher.Plugin.Shell
new Result
{
Title = context.API.GetTranslation("flowlauncher_plugin_cmd_run_as_different_user"),
Action = c =>
AsyncAction = async c =>
{
_ = Task.Run(() => Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title)));
Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title));
return true;
},
IcoPath = "Images/user.png"