1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Put plugin folder path in an entry to allow copying (open button not enabled on mac)

This commit is contained in:
inb 2017-04-25 09:16:26 +01:00
parent 26e7398805
commit 92fdfa31f3

View File

@ -314,12 +314,17 @@ class PreferencesDialog(tk.Toplevel):
plugnames, disabled_plugins = plug.find_plugins()
nb.Label(plugsframe, text=_('Plugins Folder:')).grid(padx=PADX, sticky=tk.W)
nb.Label(plugsframe, text=plugdir).grid(padx=PADX, sticky=tk.W)
plugdirentry = nb.Entry(plugsframe,
justify=tk.LEFT)
plugdirentry.insert(0, plugdir)
plugdirentry.grid(padx=PADX, columnspan=2, sticky=tk.EW)
if platform == "win32":
nb.Button(plugsframe, text="Open",
command=lambda: os.startfile(plugdir)).grid(padx=PADX, sticky=tk.W)
command=lambda: os.startfile(plugdir)).grid(padx=PADX-1, sticky=tk.W)
nb.Label(plugsframe, text=_("Tip: You can disable a plugin by\nadding '.disabled' to it's folder name")).grid(
columnspan=2,
padx=PADX, pady=10, sticky=tk.NSEW)
if len(plugnames):