Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes include the addition of a condition chec…
…k in the `OSCController.cs` file to allow for both random and sequential cycling through items, and the modification of the sorting order for `ViewModel.Instance.StatusList` in the `MainWindow.xaml.cs` file to ensure that more recently used items appear earlier in the list when sorting by favorites. A syntax error in the `MainWindow.xaml.cs` file was also corrected. 1. In the `OSCController.cs` file, a condition check for `ViewModel.Instance.IsRandomCycling` was added. If this condition is true, the code will execute the same logic as before. If it's false, the code will find the active item in `cycleItems`, deactivate it, and activate the next item in the list. If the active item is the last item in the list, it will activate the first item. In both cases, it will update `ViewModel.Instance.LastSwitchCycle` to the current time. This change allows for both random and sequential cycling through items. 2. In the `MainWindow.xaml.cs` file, the sorting order for `ViewModel.Instance.StatusList` was changed in the `SortFav_Click` method. Previously, the list was sorted in descending order by `UseInCycle` and then in ascending order by `LastUsed`. Now, it's sorted in descending order by both `UseInCycle` and `LastUsed`. This change ensures that items that were used more recently will appear earlier in the list when sorting by favorites. 3. An extra closing brace was added at the end of the `MainWindow.xaml.cs` file, correcting a syntax error in the code.
- Loading branch information