(self, pluginName, parent)
| 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 | ) |
no test coverage detected