diff --git a/onvif-gui/gui/main.py b/onvif-gui/gui/main.py index 2bfdb0c..b1a3bbc 100644 --- a/onvif-gui/gui/main.py +++ b/onvif-gui/gui/main.py @@ -51,7 +51,7 @@ import avio import liblivemedia -VERSION = "2.2.7" +VERSION = "2.2.8" class TimerSignals(QObject): timeoutPlayer = pyqtSignal(str) diff --git a/onvif-gui/gui/panels/options/proxy.py b/onvif-gui/gui/panels/options/proxy.py index c34f7f5..b774c99 100644 --- a/onvif-gui/gui/panels/options/proxy.py +++ b/onvif-gui/gui/panels/options/proxy.py @@ -83,6 +83,12 @@ def __init__(self, mw): lytMain.setRowStretch(1, 10) def setProxyType(self, type): + self.proxyType = type + self.mw.settings.setValue(self.proxyTypeKey, type) + + if type == ProxyType.SERVER: + self.mw.startProxyServer() + if not hasattr(self.mw, "cameraPanel"): return @@ -90,9 +96,6 @@ def setProxyType(self, type): QMessageBox.information(self.mw, "Closing Streams", "All current streams will be closed") self.mw.closeAllStreams() - self.proxyType = type - self.mw.settings.setValue(self.proxyTypeKey, type) - getProxyURI = None if type != ProxyType.STAND_ALONE: getProxyURI = self.mw.getProxyURI @@ -112,7 +115,6 @@ def radStandAloneToggled(self, checked): def radServerToggled(self, checked): self.lblConnect.setEnabled(checked) if checked: - self.mw.startProxyServer() self.setProxyType(ProxyType.SERVER) self.lblServer.setText(self.mw.proxy.getRootURI()) else: