PyCharm switches to the offline mode automatically , and displays an offline notification in a popup. To enable this behaviour, select the Switch to offline mode automatically if Perforce is unavailable checkbox in the Perforce page of the Settings dialog.