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:
parent
b3f70aa8a9
commit
98362ab508
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue