Update OpenFileWhenConnected