From 73a8103c02637d0b12da0bcad3df6f4afa3077a8 Mon Sep 17 00:00:00 2001 From: Scott Harrison Date: Wed, 7 Dec 2022 08:51:18 -0600 Subject: [PATCH] macOS/Sim: adding simulator plugin cache lifetime to preferences window (#485) --- platform/mac/English.lproj/Preferences.xib | 53 +++++++++++++++++----- platform/resources/shell.lua | 2 +- 2 files changed, 43 insertions(+), 12 deletions(-) diff --git a/platform/mac/English.lproj/Preferences.xib b/platform/mac/English.lproj/Preferences.xib index b49297e45..4fadeb99e 100644 --- a/platform/mac/English.lproj/Preferences.xib +++ b/platform/mac/English.lproj/Preferences.xib @@ -1,8 +1,8 @@ - + - + @@ -17,14 +17,14 @@ - - + + - + - + @@ -82,7 +82,7 @@ - + @@ -91,7 +91,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/platform/resources/shell.lua b/platform/resources/shell.lua index 3e4ee86a1..d75a9a6bb 100644 --- a/platform/resources/shell.lua +++ b/platform/resources/shell.lua @@ -368,7 +368,7 @@ function PluginSync:addPluginToQueueIfRequired( required_plugin ) -- Find reasons to queue the plugin for download. local should_queue = false - local maxAge = system.getPreference("simulator", "SimPluginCacheMaxAge","number") or 86400 + local maxAge = (system.getPreference("simulator", "SimPluginCacheMaxAge","number") or 24) * 3600 local manifest = self.clientCatalog[ key ] should_queue = should_queue or ( not manifest )