MCPcopy Create free account
hub / github.com/echQoQ/RustSL / refresh

Method refresh

gui/widgets.py:85–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.refresh()
84
85 def refresh(self):
86 self.clear()
87 bundle_files = list_bundle_files()
88 bundle_icon = QIcon(os.path.join('gui', 'icons', 'bundle.ico')) if os.path.exists(os.path.join('gui', 'icons', 'bundle.ico')) else QIcon()
89 for f in bundle_files:
90 file_path = os.path.abspath(os.path.join('bundle', f))
91 self.addItem(bundle_icon, f, file_path)
92 if self.count() > 0 and self.currentIndex() == -1:
93 self.setCurrentIndex(0)
94
95 def choose_file(self, parent=None):
96 path, _ = QFileDialog.getOpenFileName(parent, 'Select File to Bundle', '.', 'All Files (*)')

Callers 1

__init__Method · 0.95

Calls 1

list_bundle_filesFunction · 0.85

Tested by

no test coverage detected