fix: trim quotes from dev plugin before validation (#2186)

This commit is contained in:
Cytraen 2025-03-01 08:38:14 -05:00 committed by GitHub
parent cd03ef7d02
commit 3a9dc48c11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,6 +206,7 @@ public class DevPluginsSettingsEntry : SettingsEntry
private void AddDevPlugin()
{
this.devPluginTempLocation = this.devPluginTempLocation.Trim('"');
if (this.devPluginLocations.Any(
r => string.Equals(r.Path, this.devPluginTempLocation, StringComparison.InvariantCultureIgnoreCase)))
{
@ -224,7 +225,7 @@ public class DevPluginsSettingsEntry : SettingsEntry
this.devPluginLocations.Add(
new DevPluginLocationSettings
{
Path = this.devPluginTempLocation.Replace("\"", string.Empty),
Path = this.devPluginTempLocation,
IsEnabled = true,
});
this.devPluginLocationsChanged = true;