updated debug help
This commit is contained in:
parent
791b493c5d
commit
0f1c0e0338
1 changed files with 1 additions and 83 deletions
|
@ -3884,7 +3884,6 @@ class ResumePage(Page):
|
||||||
self.button_go.setVisible(bool(self.line_edit.text()))
|
self.button_go.setVisible(bool(self.line_edit.text()))
|
||||||
|
|
||||||
def find_menu_page(self):
|
def find_menu_page(self):
|
||||||
# Method to find the MenuPage instance
|
|
||||||
for i in range(self.page_stack.count()):
|
for i in range(self.page_stack.count()):
|
||||||
page = self.page_stack.widget(i)
|
page = self.page_stack.widget(i)
|
||||||
if isinstance(page, MenuPage):
|
if isinstance(page, MenuPage):
|
||||||
|
@ -4960,46 +4959,8 @@ class Settings(Page):
|
||||||
""")
|
""")
|
||||||
command_layout.addWidget(self.cli_command)
|
command_layout.addWidget(self.cli_command)
|
||||||
|
|
||||||
instruction_label = QLabel("You must be in the same folder as the AppImage, so if it's in Downloads, then go to the Downloads folder")
|
|
||||||
instruction_label.setWordWrap(True)
|
|
||||||
instruction_label.setStyleSheet(f"""
|
|
||||||
QLabel {{
|
|
||||||
color: #FFA500;
|
|
||||||
font-size: 11px;
|
|
||||||
margin: 5px 0;
|
|
||||||
{self.font_style}
|
|
||||||
}}
|
|
||||||
""")
|
|
||||||
command_layout.addWidget(instruction_label)
|
|
||||||
|
|
||||||
trouble_label = QLabel("Trouble finding the AppImage?")
|
|
||||||
trouble_label.setStyleSheet(f"""
|
|
||||||
QLabel {{
|
|
||||||
color: white;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 10px;
|
|
||||||
{self.font_style}
|
|
||||||
}}
|
|
||||||
""")
|
|
||||||
command_layout.addWidget(trouble_label)
|
|
||||||
|
|
||||||
find_command = QLineEdit()
|
|
||||||
find_command.setReadOnly(True)
|
|
||||||
find_command.setText(f"find ~ -name '{os.environ.get('APPIMAGE') or '/path/to/hydra-veil'}' 2>/dev/null")
|
|
||||||
find_command.setStyleSheet(f"""
|
|
||||||
QLineEdit {{
|
|
||||||
color: white;
|
|
||||||
background: rgba(255, 255, 255, 0.1);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 8px;
|
|
||||||
font-family: 'Courier New', monospace;
|
|
||||||
font-size: 11px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}}
|
|
||||||
""")
|
|
||||||
command_layout.addWidget(find_command)
|
|
||||||
|
|
||||||
cli_buttons_layout = QHBoxLayout()
|
cli_buttons_layout = QHBoxLayout()
|
||||||
|
|
||||||
|
@ -5051,52 +5012,9 @@ class Settings(Page):
|
||||||
|
|
||||||
command_layout.addLayout(cli_buttons_layout)
|
command_layout.addLayout(cli_buttons_layout)
|
||||||
|
|
||||||
# Buttons for find command
|
|
||||||
find_buttons_layout = QHBoxLayout()
|
find_buttons_layout = QHBoxLayout()
|
||||||
|
|
||||||
find_copy_button = QPushButton("Copy Find Command")
|
|
||||||
find_copy_button.setFixedSize(140, 40)
|
|
||||||
find_copy_button.setStyleSheet(f"""
|
|
||||||
QPushButton {{
|
|
||||||
font-size: 12px;
|
|
||||||
background: #007AFF;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 5px;
|
|
||||||
font-weight: bold;
|
|
||||||
{self.font_style}
|
|
||||||
}}
|
|
||||||
QPushButton:hover {{
|
|
||||||
background: #0056CC;
|
|
||||||
}}
|
|
||||||
QPushButton:disabled {{
|
|
||||||
background: #666666;
|
|
||||||
}}
|
|
||||||
""")
|
|
||||||
find_copy_button.clicked.connect(lambda: self.copy_find_command(find_command.text()))
|
|
||||||
find_buttons_layout.addWidget(find_copy_button)
|
|
||||||
|
|
||||||
find_execute_button = QPushButton("Execute Find Command")
|
|
||||||
find_execute_button.setFixedSize(140, 40)
|
|
||||||
find_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;
|
|
||||||
}}
|
|
||||||
""")
|
|
||||||
find_execute_button.clicked.connect(lambda: self.execute_find_command(find_command.text()))
|
|
||||||
find_buttons_layout.addWidget(find_execute_button)
|
|
||||||
|
|
||||||
command_layout.addLayout(find_buttons_layout)
|
command_layout.addLayout(find_buttons_layout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue