So I have a button in my code that does two things: it starts a process which takes a while, and it also opens a window with a progress bar that works until the other proces