removed execute command
This commit is contained in:
parent
d0ef7f1600
commit
b41ac6b6b2
1 changed files with 1 additions and 25 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue