mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
659356a650
commit
8a2ec4dfe9
1 changed files with 6 additions and 1 deletions
|
|
@ -149,9 +149,14 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
|
||||||
|
|
||||||
public SearchDelaySpeedData SearchDelaySpeed
|
public SearchDelaySpeedData SearchDelaySpeed
|
||||||
{
|
{
|
||||||
get => SearchDelaySpeeds.First(x => x.Value == Settings.SearchDelaySpeed);
|
get => SearchDelaySpeeds.FirstOrDefault(x => x.Value == Settings.SearchDelaySpeed) ??
|
||||||
|
SearchDelaySpeeds.FirstOrDefault(x => x.Value == SearchDelaySpeeds.Medium) ??
|
||||||
|
SearchDelaySpeeds.FirstOrDefault();
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
if (value == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (Settings.SearchDelaySpeed != value.Value)
|
if (Settings.SearchDelaySpeed != value.Value)
|
||||||
{
|
{
|
||||||
Settings.SearchDelaySpeed = value.Value;
|
Settings.SearchDelaySpeed = value.Value;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue