From f20ec331d81306bd76fffd6cdc71de79be3a463b Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 27 Sep 2017 13:19:00 -0400 Subject: [PATCH] Fixes static file enumeration --- TGControlPanel/StaticPage.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TGControlPanel/StaticPage.cs b/TGControlPanel/StaticPage.cs index fd7ddb200b..192f9a8635 100644 --- a/TGControlPanel/StaticPage.cs +++ b/TGControlPanel/StaticPage.cs @@ -274,7 +274,7 @@ namespace TGControlPanel return; var path = IndexesToPaths[newIndex]; var title = (string)StaticFileListBox.Items[newIndex]; - var authed_title = title.Replace(" (UNAUTHORIZED)", ""); + var authed_title = title.Replace(" (UNAUTHORIZED)", "").Replace(" (...)", ""); if (authed_title[authed_title.Length - 1] == '/') { StaticFileEditTextbox.ReadOnly = true; @@ -283,7 +283,9 @@ namespace TGControlPanel { EnumeratedPaths.Add(path); BuildFileList(); + enumerating = true; StaticFileListBox.SelectedIndex = newIndex; + enumerating = false; return; } }