mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-02 16:41:04 +03:00
Put plugin folder path in an entry to allow copying (open button not enabled on mac)
This commit is contained in:
parent
26e7398805
commit
92fdfa31f3
9
prefs.py
9
prefs.py
@ -314,12 +314,17 @@ class PreferencesDialog(tk.Toplevel):
|
|||||||
plugnames, disabled_plugins = plug.find_plugins()
|
plugnames, disabled_plugins = plug.find_plugins()
|
||||||
|
|
||||||
nb.Label(plugsframe, text=_('Plugins Folder:')).grid(padx=PADX, sticky=tk.W)
|
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":
|
if platform == "win32":
|
||||||
nb.Button(plugsframe, text="Open",
|
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(
|
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)
|
padx=PADX, pady=10, sticky=tk.NSEW)
|
||||||
|
|
||||||
if len(plugnames):
|
if len(plugnames):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user