(self)
| 698 | |
| 699 | # 判断第几个 |
| 700 | def scrollAreaProcessor(self): |
| 701 | self.globalServerConfig = readGlobalServerConfig() |
| 702 | type = str(self.sender().objectName()).split("!")[0] |
| 703 | index = int(str(self.sender().objectName()).split("!")[1]) |
| 704 | if type == "startServer": |
| 705 | self.startServer(index=index) |
| 706 | elif type == "editServer": |
| 707 | self.initEditServerInterface(index=index) |
| 708 | elif type == "editServerConfig": |
| 709 | self.startServer(index=index, isEditingConfig=True) |
| 710 | elif type == "backupFullServer": |
| 711 | backupServer( |
| 712 | ServerConfigConstructor.loadServerConfig(index=index).serverName, |
| 713 | parent=self, |
| 714 | ) |
| 715 | elif type == "backupServerSaves": |
| 716 | backupSaves(ServerConfigConstructor.loadServerConfig(index=index), parent=self) |
| 717 | elif type == "openDataFolder": |
| 718 | openLocalFile(f"./Servers/{self.globalServerConfig[index]['name']}") |
| 719 | elif type == "deleteServer": |
| 720 | self.deleteServer_Step1(index=index) |
| 721 | |
| 722 | ################## |
| 723 | # 删除服务器 # |
nothing calls this directly
no test coverage detected