Skip to content

Commit cef53bc

Browse files
committed
add empty string defaults to plugin executable paths
1 parent e28906d commit cef53bc

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Flow.Launcher.Core/ExternalPlugins/Environments/AbstractPluginEnvironment.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Flow.Launcher.Infrastructure;
2-
using Flow.Launcher.Infrastructure.Logger;
1+
using Flow.Launcher.Infrastructure.Logger;
32
using Flow.Launcher.Infrastructure.UserSettings;
43
using Flow.Launcher.Plugin;
54
using Flow.Launcher.Plugin.SharedCommands;
65
using System;
76
using System.Collections.Generic;
87
using System.IO;
98
using System.Linq;
10-
using System.Text.RegularExpressions;
119
using System.Windows.Forms;
1210

1311
namespace Flow.Launcher.Core.ExternalPlugins.Environments
@@ -32,12 +30,6 @@ public abstract class AbstractPluginEnvironment
3230

3331
internal PluginsSettings PluginSettings;
3432

35-
private const string updatePythonIndicatorFilename = ".updatePythonPath";
36-
37-
private const string updateNodeIndicatorFilename = ".updateNodePath";
38-
39-
private const string appDataRegex = @"app-\d\.\d\.\d";
40-
4133
internal AbstractPluginEnvironment(List<PluginMetadata> pluginMetadataList, PluginsSettings pluginSettings)
4234
{
4335
PluginMetadataList = pluginMetadataList;

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
55
{
66
public class PluginsSettings : BaseModel
77
{
8-
private string pythonExecutablePath;
8+
private string pythonExecutablePath = string.Empty;
99
public string PythonExecutablePath {
1010
get { return pythonExecutablePath; }
1111
set
@@ -15,7 +15,7 @@ public string PythonExecutablePath {
1515
}
1616
}
1717

18-
private string nodeExecutablePath;
18+
private string nodeExecutablePath = string.Empty;
1919
public string NodeExecutablePath
2020
{
2121
get { return nodeExecutablePath; }

0 commit comments

Comments
 (0)