mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[PTRun]Remove unused settings from code (#30865)
This commit is contained in:
committed by
GitHub
parent
50b24d0779
commit
1477983ee7
@@ -1,15 +0,0 @@
|
|||||||
// 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 Wox.Plugin;
|
|
||||||
|
|
||||||
namespace Wox.Infrastructure.UserSettings
|
|
||||||
{
|
|
||||||
public class CustomPluginHotkey : BaseModel
|
|
||||||
{
|
|
||||||
public string Hotkey { get; set; }
|
|
||||||
|
|
||||||
public string ActionKeyword { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
namespace Wox.Infrastructure.UserSettings
|
|
||||||
{
|
|
||||||
public class HttpProxy
|
|
||||||
{
|
|
||||||
public bool Enabled { get; set; }
|
|
||||||
|
|
||||||
public string Server { get; set; }
|
|
||||||
|
|
||||||
public int Port { get; set; }
|
|
||||||
|
|
||||||
public string UserName { get; set; }
|
|
||||||
|
|
||||||
public string Password { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -2,9 +2,6 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
using ManagedCommon;
|
using ManagedCommon;
|
||||||
@@ -177,35 +174,16 @@ namespace Wox.Infrastructure.UserSettings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Language { get; set; } = "en";
|
|
||||||
|
|
||||||
public Theme Theme { get; set; } = Theme.System;
|
public Theme Theme { get; set; } = Theme.System;
|
||||||
|
|
||||||
public StartupPosition StartupPosition { get; set; } = StartupPosition.Cursor;
|
public StartupPosition StartupPosition { get; set; } = StartupPosition.Cursor;
|
||||||
|
|
||||||
public string QueryBoxFont { get; set; } = FontFamily.GenericSansSerif.Name;
|
|
||||||
|
|
||||||
public string QueryBoxFontStyle { get; set; }
|
|
||||||
|
|
||||||
public string QueryBoxFontWeight { get; set; }
|
|
||||||
|
|
||||||
public bool PTRunNonDelayedSearchInParallel { get; set; } = true;
|
public bool PTRunNonDelayedSearchInParallel { get; set; } = true;
|
||||||
|
|
||||||
public string PTRunStartNewSearchAction { get; set; }
|
public string PTRunStartNewSearchAction { get; set; }
|
||||||
|
|
||||||
public bool PTRSearchQueryFastResultsWithDelay { get; set; }
|
public bool PTRSearchQueryFastResultsWithDelay { get; set; }
|
||||||
|
|
||||||
// public bool PTRSearchQueryFastResultsWithPartialDelay { get; set; }
|
|
||||||
public string QueryBoxFontStretch { get; set; }
|
|
||||||
|
|
||||||
public string ResultFont { get; set; } = FontFamily.GenericSansSerif.Name;
|
|
||||||
|
|
||||||
public string ResultFontStyle { get; set; }
|
|
||||||
|
|
||||||
public string ResultFontWeight { get; set; }
|
|
||||||
|
|
||||||
public string ResultFontStretch { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether when false Alphabet static service will always return empty results
|
/// Gets or sets a value indicating whether when false Alphabet static service will always return empty results
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -213,38 +191,6 @@ namespace Wox.Infrastructure.UserSettings
|
|||||||
|
|
||||||
internal StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;
|
internal StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public string QuerySearchPrecisionString
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return QuerySearchPrecision.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var precisionScore = (StringMatcher.SearchPrecisionScore)Enum
|
|
||||||
.Parse(typeof(StringMatcher.SearchPrecisionScore), value);
|
|
||||||
|
|
||||||
QuerySearchPrecision = precisionScore;
|
|
||||||
StringMatcher.Instance.UserSettingSearchPrecision = precisionScore;
|
|
||||||
}
|
|
||||||
catch (ArgumentException e)
|
|
||||||
{
|
|
||||||
Wox.Plugin.Logger.Log.Exception("Failed to load QuerySearchPrecisionString value from Settings file", e, GetType());
|
|
||||||
|
|
||||||
QuerySearchPrecision = StringMatcher.SearchPrecisionScore.Regular;
|
|
||||||
StringMatcher.Instance.UserSettingSearchPrecision = StringMatcher.SearchPrecisionScore.Regular;
|
|
||||||
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool AutoUpdates { get; set; }
|
|
||||||
|
|
||||||
public double WindowLeft { get; set; }
|
public double WindowLeft { get; set; }
|
||||||
|
|
||||||
public double WindowTop { get; set; }
|
public double WindowTop { get; set; }
|
||||||
@@ -283,34 +229,6 @@ namespace Wox.Infrastructure.UserSettings
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ObservableCollection<CustomPluginHotkey> CustomPluginHotkeys { get; } = new ObservableCollection<CustomPluginHotkey>();
|
|
||||||
|
|
||||||
public bool DontPromptUpdateMsg { get; set; }
|
|
||||||
|
|
||||||
public bool EnableUpdateLog { get; set; }
|
|
||||||
|
|
||||||
public bool StartWoxOnSystemStartup { get; set; } = true;
|
|
||||||
|
|
||||||
public bool HideOnStartup { get; set; }
|
|
||||||
|
|
||||||
private bool _hideNotifyIcon;
|
|
||||||
|
|
||||||
public bool HideNotifyIcon
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return _hideNotifyIcon;
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_hideNotifyIcon = value;
|
|
||||||
OnPropertyChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool LeaveCmdOpen { get; set; }
|
|
||||||
|
|
||||||
public bool HideWhenDeactivated { get; set; } = true;
|
public bool HideWhenDeactivated { get; set; } = true;
|
||||||
|
|
||||||
public bool ClearInputOnLaunch { get; set; }
|
public bool ClearInputOnLaunch { get; set; }
|
||||||
@@ -349,8 +267,6 @@ namespace Wox.Infrastructure.UserSettings
|
|||||||
|
|
||||||
public bool GenerateThumbnailsFromFiles { get; set; } = true;
|
public bool GenerateThumbnailsFromFiles { get; set; } = true;
|
||||||
|
|
||||||
public HttpProxy Proxy { get; set; } = new HttpProxy();
|
|
||||||
|
|
||||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||||
public LastQueryMode LastQueryMode { get; set; } = LastQueryMode.Selected;
|
public LastQueryMode LastQueryMode { get; set; } = LastQueryMode.Selected;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user