Its a clever idea that looks nice. You see the lists near the top. When you create a settlement it adds to the list. Removing removes it. When you choose a settlement on the left and a different one on the right, it transfers the set number of resources from one to the other every x seconds.
My issue is when you rename a settlement it updates the entry until you enter a space. Having a space is as far as i know unpreventable and fine when renaming a settlement (textbox)... but the list doesn't like it. Which is odd as i can enter entries in fine with a space but not when typing it out using the code below.
Will other code work? It is basically losing the ability to find the entry once a space is added.