From 1dccdd0a3c117a14a1a66751261500ca7c31b946 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 16 May 2020 15:40:59 -0400 Subject: [PATCH] Improvements to algorithm and counter steppers. --- platform-darwin/Source/Mac/MPSiteModel.m | 3 ++- platform-darwin/Source/Mac/MPSitesWindowController.xib | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/platform-darwin/Source/Mac/MPSiteModel.m b/platform-darwin/Source/Mac/MPSiteModel.m index 01907209..79a4ce46 100644 --- a/platform-darwin/Source/Mac/MPSiteModel.m +++ b/platform-darwin/Source/Mac/MPSiteModel.m @@ -179,7 +179,8 @@ if (algorithmVersion == self.algorithm.version) return; [self willChangeValueForKey:@"outdated"]; - self.algorithm = MPAlgorithmForVersion( algorithmVersion )?: self.algorithm; + self.algorithm = + MPAlgorithmForVersion( MIN( MPAlgorithmVersionLast, MAX( MPAlgorithmVersionFirst, algorithmVersion ) ) )?: self.algorithm; [self didChangeValueForKey:@"outdated"]; if (self.entityOID) diff --git a/platform-darwin/Source/Mac/MPSitesWindowController.xib b/platform-darwin/Source/Mac/MPSitesWindowController.xib index b263f365..a62de979 100644 --- a/platform-darwin/Source/Mac/MPSitesWindowController.xib +++ b/platform-darwin/Source/Mac/MPSitesWindowController.xib @@ -722,7 +722,7 @@ Use the arrows ⇅ to navigate the list or esc ⎋ to exit. - + @@ -776,7 +776,7 @@ Use the arrows ⇅ to navigate the list or esc ⎋ to exit. - +