fixed text display search output

Always showed the system it was iniatially started with instead of the
currently searched system.
This commit is contained in:
alterNERDtive 2019-10-15 19:38:12 +02:00
parent b3f70aa8a9
commit 98362ab508

View file

@ -45,7 +45,8 @@ def outputGui():
child.grid_remove()
child.destroy()
try:
distances = getDistances(systemField.get(), cmdrs)
system = systemField.get()
distances = getDistances(system, cmdrs)
nearestCmdr = min(distances,key=distances.get)
lbl = tk.Label(
frame, text='nearest CMDR: {} ({}ly from {})'.format(nearestCmdr,