Good catch. Initially this method was called only once, so it was ok at that time.
I moved this line into showConsole(), so that the value it's no longer reset after clicking "Apply"