mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
* PowerAccent with multi-language selection - Updated Language enum, method signatures, and settings to support multiple language selections. - Remove ALL language and added special characters language instead. - Modified UI to use ListView with checkboxes for language selection, including a "Select All" option. - Adjusted ViewModel and code-behind to handle multi-selection logic. - Updated Resources.resw and PowerAccentViewModel.cs to reflect these changes. * Changes Language selection UI - Groups languages into two groups - Sort them by localized language name - Remove unneeded looping when no languages selected
20 lines
595 B
C#
20 lines
595 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
{
|
|
public class PowerAccentLanguageGroupModel : List<PowerAccentLanguageModel>
|
|
{
|
|
public PowerAccentLanguageGroupModel(List<PowerAccentLanguageModel> languages, string group)
|
|
: base(languages)
|
|
{
|
|
this.Group = group;
|
|
}
|
|
|
|
public string Group { get; init; }
|
|
}
|
|
}
|