mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Addressing initial feedback
This commit is contained in:
parent
4a05a32e1f
commit
ffd877290d
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue