From aa8df90e555004d30c6602b4f3571b59ec10311f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 20 Jun 2020 14:29:00 +0100 Subject: [PATCH] Only warn once in 24 hours about plugins not ready for python 3.x --- EDMarketConnector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index cee1a52a..4b599d68 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -299,11 +299,13 @@ class AppWindow: self.postprefs(False) # Companion login happens in callback from monitor - if len(plug.PLUGINS_not_py3): + plugins_not_py3_last = config.getint('plugins_not_py3_last') or int(time()) + if (plugins_not_py3_last + 86400) < int(time()) and len(plug.PLUGINS_not_py3): import tkMessageBox tkMessageBox.showinfo('Plugins Without Python 3.x Support', "One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the 'Plugins' tab of 'File' > 'Settings'. You should check if there is an updated version available, else alert the developer that they will need to update the code when EDMC moves to Python 3.x" ) + config.set('plugins_not_py3_last', int(time())) # callback after the Preferences dialog is applied