/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/WorkspacesProperties.cs
37 строк
1013 B
Seraphima Zykova
[Workspaces] Default hotkey update (#34468)
29 авг 2024, 10:48
Не верифицирован
29 авг 2024, 10:48
62a8a9b
Код
Авторство
О чём код?
// 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.Text.Json; using System.Text.Json.Serialization; namespace Microsoft.PowerToys.Settings.UI.Library { public class WorkspacesProperties { public enum SortByProperty { LastLaunched, Created, Name, } public static readonly HotkeySettings DefaultHotkeyValue = new HotkeySettings(true, true, false, false, 0xC0); public WorkspacesProperties() { Hotkey = new KeyboardKeysProperty(DefaultHotkeyValue); } [JsonPropertyName("hotkey")] public KeyboardKeysProperty Hotkey { get; set; } [JsonPropertyName("sortby")] public SortByProperty SortBy { get; set; } public string ToJsonString() { return JsonSerializer.Serialize(this); } } }