fix: trim spaces at the end of repo url

This commit is contained in:
Aireil 2021-10-11 20:25:45 +02:00
parent 85affedaa8
commit 711baec9b6

View file

@ -448,6 +448,7 @@ namespace Dalamud.Interface.Internal.Windows
ImGui.NextColumn();
if (!string.IsNullOrEmpty(this.thirdRepoTempUrl) && ImGuiComponents.IconButton(FontAwesomeIcon.Plus))
{
this.thirdRepoTempUrl = this.thirdRepoTempUrl.TrimEnd();
if (this.thirdRepoList.Any(r => string.Equals(r.Url, this.thirdRepoTempUrl, StringComparison.InvariantCultureIgnoreCase)))
{
this.thirdRepoAddError = Loc.Localize("DalamudThirdRepoExists", "Repo already exists.");