From b41ac6b6b2504fab0c1d3ae56c8639d27ff3c4ac Mon Sep 17 00:00:00 2001 From: John Date: Sun, 21 Sep 2025 04:29:13 +0100 Subject: [PATCH] removed execute command --- gui/__main__.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/gui/__main__.py b/gui/__main__.py index 3f6ad9a..7432c34 100755 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -4987,28 +4987,7 @@ class Settings(Page): cli_copy_button.setEnabled(False) cli_buttons_layout.addWidget(cli_copy_button) - cli_execute_button = QPushButton("Execute CLI Command") - cli_execute_button.setFixedSize(140, 40) - cli_execute_button.setStyleSheet(f""" - QPushButton {{ - font-size: 10px; - background: #4CAF50; - color: white; - border: none; - border-radius: 5px; - font-weight: bold; - {self.font_style} - }} - QPushButton:hover {{ - background: #45a049; - }} - QPushButton:disabled {{ - background: #666666; - }} - """) - cli_execute_button.clicked.connect(self.execute_cli_command) - cli_execute_button.setEnabled(False) - cli_buttons_layout.addWidget(cli_execute_button) + command_layout.addLayout(cli_buttons_layout) @@ -5021,7 +5000,6 @@ class Settings(Page): scroll_layout.addWidget(command_group) self.cli_copy_button = cli_copy_button - self.cli_execute_button = cli_execute_button wg_quick_group = QGroupBox("Direct Systemwide Wireguard") wg_quick_group.setStyleSheet(f""" @@ -5183,7 +5161,6 @@ class Settings(Page): self.ping_result_label.hide() self.cli_command.setText("Select a profile above to see command") self.cli_copy_button.setEnabled(False) - self.cli_execute_button.setEnabled(False) if hasattr(self, 'wg_quick_up_command_widget'): self.wg_quick_up_command_widget.setText("Select a profile above to see commands") self.wg_quick_down_command_widget.setText("Select a profile above to see commands") @@ -5199,7 +5176,6 @@ class Settings(Page): app_path = os.environ.get('APPIMAGE') or "/path/to/hydra-veil" self.cli_command.setText(f"'{app_path}' --cli profile enable -i {profile_id}") self.cli_copy_button.setEnabled(True) - self.cli_execute_button.setEnabled(True) ip_address = self.extract_endpoint_ip(profile) if ip_address: self.ping_instruction_label.setText(f"Step 1, Can you Ping it? Copy-paste the command below into your terminal. This VPN Node's IP address is {ip_address}")