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

Method on_run_mode_changed

gui/main_window.py:436–452  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()
438 run_modes = manifest.get('run_modes', [])
439 run_mode_id = self.run_mode_box.itemData(self.run_mode_box.currentIndex())
440 for rm in run_modes:
441 if rm['id'] == run_mode_id:
442 pattern = rm.get('pattern', 1)
443 if pattern == 2:
444 self.target_input.show()
445 self.pid_input.hide()
446 elif pattern == 3:
447 self.target_input.hide()
448 self.pid_input.show()
449 else:
450 self.target_input.hide()
451 self.pid_input.hide()
452 break
453
454 def on_gen_done(self, dst_file):
455 self.stop_loading_anim()

Callers

nothing calls this directly

Calls 1

load_plugins_manifestFunction · 0.85

Tested by

no test coverage detected