UI tweak to the FileManager, it now selects a profile based on host machine name.

This commit is contained in:
Admin
2020-12-09 22:01:11 -06:00
parent fdd9afb312
commit 5404a8836d
2 changed files with 7 additions and 1 deletions
Binary file not shown.
+7 -1
View File
@@ -145,7 +145,13 @@ namespace DataOrganizer
foreach(var profile in Profiles)
SelectProfileComboBoxMainMenu.Items.Add(profile.Name);
if(Profiles.Count > 0) SelectProfileComboBoxMainMenu.SelectedIndex = 0;
if (Profiles.Count > 0)
{
if(Profiles.Count(x => x.MachineName == Environment.MachineName) == 1)
SelectProfileComboBoxMainMenu.SelectedIndex = Profiles.FindIndex(x => x.MachineName == Environment.MachineName);
else
SelectProfileComboBoxMainMenu.SelectedIndex = 0;
}
}
private void RefreshForm()