mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
[1801] Add Warning for FDevIDs
This commit is contained in:
parent
a38cf5a9ac
commit
fe327606ab
@ -2318,6 +2318,35 @@ sys.path: {sys.path}'''
|
|||||||
)
|
)
|
||||||
config.set('plugins_not_py3_last', int(time()))
|
config.set('plugins_not_py3_last', int(time()))
|
||||||
|
|
||||||
|
def check_fdev_ids():
|
||||||
|
"""Display message about missing FDEVID files"""
|
||||||
|
fdev_files = {'commodity.csv', 'rare_commodity.csv'}
|
||||||
|
for file in fdev_files:
|
||||||
|
file = pathlib.Path(config.respath_path / 'FDevIDs' / file)
|
||||||
|
if file.is_file():
|
||||||
|
continue
|
||||||
|
# LANG: Popup-text about missing FDEVID Files
|
||||||
|
popup_text = _(
|
||||||
|
"FDevID Files not found! Some functionality regarding commodities "
|
||||||
|
r"may be disabled.\r\n\r\n Do you want to open the Wiki page on "
|
||||||
|
"how to set up submodules?"
|
||||||
|
)
|
||||||
|
# And now we do need these to be actual \r\n
|
||||||
|
popup_text = popup_text.replace('\\n', '\n')
|
||||||
|
popup_text = popup_text.replace('\\r', '\r')
|
||||||
|
|
||||||
|
openwikipage = tk.messagebox.askquestion(
|
||||||
|
# LANG: Popup window title for missing FDEVID files
|
||||||
|
_('FDevIDs: Missing Commodity Files'),
|
||||||
|
popup_text
|
||||||
|
)
|
||||||
|
if openwikipage == "yes":
|
||||||
|
webbrowser.open(
|
||||||
|
"https://github.com/EDCD/EDMarketConnector/wiki/Running-from-source"
|
||||||
|
"#obtain-a-copy-of-the-application-source"
|
||||||
|
)
|
||||||
|
break
|
||||||
|
|
||||||
# UI Transparency
|
# UI Transparency
|
||||||
ui_transparency = config.get_int('ui_transparency')
|
ui_transparency = config.get_int('ui_transparency')
|
||||||
if ui_transparency == 0:
|
if ui_transparency == 0:
|
||||||
@ -2331,6 +2360,8 @@ sys.path: {sys.path}'''
|
|||||||
root.after(1, messagebox_not_py3)
|
root.after(1, messagebox_not_py3)
|
||||||
# Show warning popup for killswitches matching current version
|
# Show warning popup for killswitches matching current version
|
||||||
root.after(2, show_killswitch_poppup, root)
|
root.after(2, show_killswitch_poppup, root)
|
||||||
|
# Check for FDEV IDs
|
||||||
|
root.after(3, check_fdev_ids)
|
||||||
# Start the main event loop
|
# Start the main event loop
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
|
@ -213,6 +213,12 @@
|
|||||||
/* EDMarketConnector.py: Popup-text about 'active' plugins without Python 3.x support; In files: EDMarketConnector.py:2253:2259; */
|
/* EDMarketConnector.py: Popup-text about 'active' plugins without Python 3.x support; In files: EDMarketConnector.py:2253:2259; */
|
||||||
"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 need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name." = "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 need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name.";
|
"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 need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name." = "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 need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name.";
|
||||||
|
|
||||||
|
/* EDMarketConnector.py: Popup-text about missing FDEVID Files; In files: EDMarketConnector.py:2329; */
|
||||||
|
"FDevID Files not found! Some functionality regarding commodities may be disabled.\r\n\r\n Do you want to open the Wiki page on how to set up submodules?" = "FDevID Files not found! Some functionality regarding commodities may be disabled.\r\n\r\n Do you want to open the Wiki page on how to set up submodules?";
|
||||||
|
|
||||||
|
/* EDMarketConnector.py: Popup window title for missing FDEVID files; In files: EDMarketConnector.py:2340; */
|
||||||
|
"FDevIDs: Missing Commodity Files" = "FDevIDs: Missing Commodity Files";
|
||||||
|
|
||||||
/* EDMarketConnector.py: Settings > Plugins tab; prefs.py: Label on Settings > Plugins tab; In files: EDMarketConnector.py:2263; prefs.py:986; */
|
/* EDMarketConnector.py: Settings > Plugins tab; prefs.py: Label on Settings > Plugins tab; In files: EDMarketConnector.py:2263; prefs.py:986; */
|
||||||
"Plugins" = "Plugins";
|
"Plugins" = "Plugins";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user