Make saveChannelState() public, connect to QApplication::aboutToQuit so state is persisted on SIGINT, tray quit, or any other shutdown.
Make saveChannelState() public, connect to QApplication::aboutToQuit so state is persisted on SIGINT, tray quit, or any other shutdown.