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

Method scrollAreaProcessor

MCSL2Lib/Pages/serverManagerPage.py:700–720  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 # 删除服务器 #

Callers

nothing calls this directly

Calls 8

startServerMethod · 0.95
deleteServer_Step1Method · 0.95
readGlobalServerConfigFunction · 0.90
backupServerFunction · 0.90
backupSavesFunction · 0.90
openLocalFileFunction · 0.90
loadServerConfigMethod · 0.80

Tested by

no test coverage detected