Skip to content

Commit

Permalink
[PTRun]Remove unused settings from code (#30865)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti committed Jan 12, 2024
1 parent 50b24d0 commit 1477983
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 118 deletions.

This file was deleted.

19 changes: 0 additions & 19 deletions src/modules/launcher/Wox.Infrastructure/UserSettings/HttpProxy.cs

This file was deleted.

Expand Up @@ -2,9 +2,6 @@
// 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;
using System.Collections.ObjectModel;
using System.Drawing;
using System.Text.Json.Serialization;

using ManagedCommon;
Expand Down Expand Up @@ -177,74 +174,23 @@ public int SearchClickedItemWeight
}
}

public string Language { get; set; } = "en";

public Theme Theme { get; set; } = Theme.System;

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 string PTRunStartNewSearchAction { 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>
/// Gets or sets a value indicating whether when false Alphabet static service will always return empty results
/// </summary>
public bool ShouldUsePinyin { get; set; }

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 WindowTop { get; set; }
Expand Down Expand Up @@ -283,34 +229,6 @@ public int ActivateTimes
}
}

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 ClearInputOnLaunch { get; set; }
Expand Down Expand Up @@ -349,8 +267,6 @@ public ShowPluginsOverviewMode ShowPluginsOverview

public bool GenerateThumbnailsFromFiles { get; set; } = true;

public HttpProxy Proxy { get; set; } = new HttpProxy();

[JsonConverter(typeof(JsonStringEnumConverter))]
public LastQueryMode LastQueryMode { get; set; } = LastQueryMode.Selected;
}
Expand Down

0 comments on commit 1477983

Please sign in to comment.