MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / deletePluginFile

Method deletePluginFile

Adapters/Plugin.py:323–333  ·  view source on GitHub ↗
(self, pluginName, parent)

Source from the content-addressed store, hash-verified

321 parent.deleteBtnEnabled.emit(name == LineEditText)
322
323 def deletePluginFile(self, pluginName, parent):
324 if self.disablePlugin(pluginName)[0]:
325 rmtree(f"./Plugins/{pluginName}")
326 else:
327 InfoBar.error(
328 title="提示",
329 content=f"删除插件{pluginName}失败!",
330 duration=2000,
331 position=InfoBarPosition.BOTTOM_LEFT,
332 parent=parent,
333 )

Callers 1

deletePluginConfirmMethod · 0.95

Calls 2

disablePluginMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected