mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
31 lines
745 B
C#
31 lines
745 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.Text.Json.Serialization;
|
|||
|
|
|
|||
|
|
namespace Microsoft.CmdPal.UI.ViewModels;
|
|||
|
|
|
|||
|
|
public class FallbackSettings
|
|||
|
|
{
|
|||
|
|
public bool IsEnabled { get; set; } = true;
|
|||
|
|
|
|||
|
|
public bool IncludeInGlobalResults { get; set; }
|
|||
|
|
|
|||
|
|
public FallbackSettings()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public FallbackSettings(bool isBuiltIn)
|
|||
|
|
{
|
|||
|
|
IncludeInGlobalResults = isBuiltIn;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[JsonConstructor]
|
|||
|
|
public FallbackSettings(bool isEnabled, bool includeInGlobalResults)
|
|||
|
|
{
|
|||
|
|
IsEnabled = isEnabled;
|
|||
|
|
IncludeInGlobalResults = includeInGlobalResults;
|
|||
|
|
}
|
|||
|
|
}
|