mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add customized editor path
This commit is contained in:
parent
6df3bd8275
commit
6a5509bc80
1 changed files with 2 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
|
||||
private Result CreateOpenWithEditorResult(SearchResult record)
|
||||
{
|
||||
string editorPath = "Notepad.exe"; // TODO add the ability to create a custom editor
|
||||
string editorPath = Settings.EditorPath;
|
||||
|
||||
var name = Context.API.GetTranslation("plugin_explorer_openwitheditor")
|
||||
+ " " + Path.GetFileNameWithoutExtension(editorPath);
|
||||
|
|
@ -265,7 +265,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
var message = $"Failed to open editor for file at {record.FullPath}";
|
||||
var message = $"Failed to open editor for file at {record.FullPath} with Editor {Path.GetFileNameWithoutExtension(editorPath)} at {editorPath}";
|
||||
LogException(message, e);
|
||||
Context.API.ShowMsgError(message);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue