Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复:在首次创建服务器未点击启动的情况下点击编辑配置文件出现报错和无法启动。 #201

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MCSL2Lib/ServerControllers/windowCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def closeEvent(self, a0) -> None:
del self

def genRunScript(self, save=False):
if not hasattr(self.serverLauncher, 'jvmArg'):
self.serverLauncher._setJVMArg()
script = (
f"$host.ui.RawUI.WindowTitle=\"{self.serverConfig.serverName}\""
f"\ncd \"{osp.abspath('Servers' + osp.sep + self.serverConfig.serverName)}\""
Expand Down