mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
Only warn once in 24 hours about plugins not ready for python 3.x
This commit is contained in:
parent
9fb64e1437
commit
aa8df90e55
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user