We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0ab15 commit 3af4facCopy full SHA for 3af4fac
1 file changed
src/client/openvpn.py
@@ -1511,8 +1511,10 @@ def connect(
1511
self._logger.append(" ".join(cmd), channel=self._log_channel)
1512
1513
# Progress dialog
1514
- self._dialog = OpenVPNDialog(parent)
1515
- self._dialog.canceled_by_user.connect(self._on_user_cancel)
+ self._dialog = None
+ if show_dialog:
1516
+ self._dialog = OpenVPNDialog(parent)
1517
+ self._dialog.canceled_by_user.connect(self._on_user_cancel)
1518
1519
# Worker thread
1520
self._thread = OpenVPNConnection(
@@ -1532,7 +1534,7 @@ def connect(
1532
1534
self._thread.info.connect(self._on_info)
1533
1535
1536
self._thread.start()
- if show_dialog and self._dialog:
1537
+ if self._dialog:
1538
self._dialog.show()
1539
1540
# ------------------------------------------------------------------
0 commit comments