mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-22 19:29:24 +01:00
Always select default log in log viewer
This commit is contained in:
@@ -22,6 +22,15 @@ namespace Flowframes.UI
|
||||
|
||||
foreach (FileInfo file in logFiles)
|
||||
dd.Items.Add(file.Name);
|
||||
|
||||
if (dd.Items.Count > 0)
|
||||
dd.SelectedIndex = 0;
|
||||
|
||||
for(int i = 0; i < dd.Items.Count; i++)
|
||||
{
|
||||
if (((string)dd.Items[i]).Split('.').FirstOrDefault() == Logger.defaultLogName)
|
||||
dd.SelectedIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
public static void RefreshLogBox(TextBox logBox, string logFilename)
|
||||
|
||||
Reference in New Issue
Block a user