Show add client dialog only if main window is active #4230