From a82a693d20fd620d12a6ee07c5e6463771cff4b1 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Sat, 1 May 2021 13:17:33 -0400
Subject: [PATCH] PARAM_LAMBDA: Fix implementation of MatchesFile

---
 include/settings/parameters.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/settings/parameters.h b/include/settings/parameters.h
index 7132442a53..19c7a26812 100644
--- a/include/settings/parameters.h
+++ b/include/settings/parameters.h
@@ -357,12 +357,12 @@ public:
         if( std::is_same<ValueType, nlohmann::json>::value )
         {
             if( OPT<nlohmann::json> optval = aSettings->GetJson( m_path ) )
-                return *optval == m_default;
+                return *optval == m_getter();
         }
         else
         {
             if( OPT<ValueType> optval = aSettings->Get<ValueType>( m_path ) )
-                return *optval == m_default;
+                return *optval == m_getter();
         }
 
         // Not in file