add empty string defaults to plugin executable paths

This commit is contained in:
Jeremy 2022-12-02 19:27:04 +11:00
parent e28906de9e
commit cef53bce96
2 changed files with 3 additions and 11 deletions

View file

@ -1,5 +1,4 @@
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
using Flow.Launcher.Plugin.SharedCommands;
@ -7,7 +6,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Flow.Launcher.Core.ExternalPlugins.Environments
@ -32,12 +30,6 @@ namespace Flow.Launcher.Core.ExternalPlugins.Environments
internal PluginsSettings PluginSettings;
private const string updatePythonIndicatorFilename = ".updatePythonPath";
private const string updateNodeIndicatorFilename = ".updateNodePath";
private const string appDataRegex = @"app-\d\.\d\.\d";
internal AbstractPluginEnvironment(List<PluginMetadata> pluginMetadataList, PluginsSettings pluginSettings)
{
PluginMetadataList = pluginMetadataList;

View file

@ -5,7 +5,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
{
public class PluginsSettings : BaseModel
{
private string pythonExecutablePath;
private string pythonExecutablePath = string.Empty;
public string PythonExecutablePath {
get { return pythonExecutablePath; }
set
@ -15,7 +15,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
}
}
private string nodeExecutablePath;
private string nodeExecutablePath = string.Empty;
public string NodeExecutablePath
{
get { return nodeExecutablePath; }