/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Items/ToolbarItemSettingsEntry.cs
32 строки
901 B
yair100
Code Quality: Updated headers
01 июл 2026, 06:18
01 июл 2026, 06:18
c27305a
Код
Авторство
О чём код?
// Copyright (c) Files Community // SPDX-License-Identifier: MPL-2.0 namespace Files.App.Data.Items { [Serializable] public sealed class ToolbarItemSettingsEntry { [JsonPropertyName("CommandCode")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? CommandCode { get; set; } [JsonPropertyName("CommandGroup")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? CommandGroup { get; set; } [JsonPropertyName("ShowIcon")] public bool ShowIcon { get; set; } = true; [JsonPropertyName("ShowLabel")] public bool ShowLabel { get; set; } = false; [JsonConstructor] public ToolbarItemSettingsEntry(string? commandCode = null, string? commandGroup = null, bool showIcon = true, bool showLabel = false) { CommandCode = commandCode; CommandGroup = commandGroup; ShowIcon = showIcon; ShowLabel = showLabel; } } }