use numbers when defining cycle order to avoid issues going over 10

This commit is contained in:
Aura Asuna
2022-05-11 01:02:05 +10:00
parent 533a208bff
commit a6497ad25a
5 changed files with 25 additions and 19 deletions

View File

@@ -109,9 +109,9 @@ namespace EveOPreview.Services
newClient.Value.Refresh(true);
}
public void CycleNextClient(bool isForwards, Dictionary<string, string> cycleOrder)
public void CycleNextClient(bool isForwards, Dictionary<string, int> cycleOrder)
{
IOrderedEnumerable<KeyValuePair<string, string>> clientOrder;
IOrderedEnumerable<KeyValuePair<string, int>> clientOrder;
if (isForwards)
{
clientOrder = cycleOrder.OrderBy(x => x.Value);
@@ -159,7 +159,7 @@ namespace EveOPreview.Services
}
}
public void RegisterCycleClientHotkey(IEnumerable<Keys> keys, bool isForwards, Dictionary<string, string> cycleOrder)
public void RegisterCycleClientHotkey(IEnumerable<Keys> keys, bool isForwards, Dictionary<string, int> cycleOrder)
{
foreach (var hotkey in keys)
{