(self)
| 415 | self.sign_choose_btn.setEnabled(enabled) |
| 416 | |
| 417 | def choose_bundle_file(self): |
| 418 | from PyQt5.QtWidgets import QFileDialog |
| 419 | from PyQt5.QtGui import QIcon |
| 420 | import os |
| 421 | path, _ = QFileDialog.getOpenFileName(self, 'Select bundle file', '', 'All Files (*)') |
| 422 | if path: |
| 423 | # Ensure absolute path |
| 424 | path = os.path.abspath(path) |
| 425 | display_name = os.path.basename(path) |
| 426 | bundle_icon = QIcon(os.path.join('gui', 'icons', 'bundle.ico')) if os.path.exists(os.path.join('gui', 'icons', 'bundle.ico')) else QIcon() |
| 427 | # Check if already exists |
| 428 | for i in range(self.bundle_file_box.count()): |
| 429 | if self.bundle_file_box.itemData(i) == path: |
| 430 | self.bundle_file_box.setCurrentIndex(i) |
| 431 | return |
| 432 | # Add new item |
| 433 | self.bundle_file_box.addItem(bundle_icon, display_name, path) |
| 434 | self.bundle_file_box.setCurrentIndex(self.bundle_file_box.count() - 1) |
| 435 | |
| 436 | def on_run_mode_changed(self): |
| 437 | manifest = load_plugins_manifest() |
nothing calls this directly
no outgoing calls
no test coverage detected