diff -r cfd0e44ef084 -r e91b276e0771 eric7/Network/IRC/IrcNetworkWidget.py --- a/eric7/Network/IRC/IrcNetworkWidget.py Sat Sep 04 16:51:35 2021 +0200 +++ b/eric7/Network/IRC/IrcNetworkWidget.py Sat Sep 04 20:26:21 2021 +0200 @@ -12,6 +12,7 @@ from PyQt6.QtWidgets import QWidget, QApplication, QMenu from EricWidgets import EricMessageBox, EricFileDialog +from EricWidgets.EricApplication import ericApp from .Ui_IrcNetworkWidget import Ui_IrcNetworkWidget @@ -92,7 +93,12 @@ """ Public method to perform the IRC auto connection. """ - self.__autoConnect() + userInterface = ericApp().getObject("UserInterface") + online = userInterface.isOnline() + self.connectButton.setEnabled(online) + userInterface.onlineStateChanged.connect(self.__onlineStateChanged) + if online: + self.__autoConnect() def __autoConnect(self): """