Skip to content

Commit 8323c1f

Browse files
authored
Merge pull request #7948 from PCL-Community/#7932
feat(event): 增加“检查更新”自定义事件
2 parents 4ad3acb + 7ee3ebb commit 8323c1f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Plain Craft Launcher 2/Modules/ModEvent.vb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Public Class CustomEvent
167167
修改变量
168168
写入变量
169169
加入房间
170+
检查更新
170171
End Enum
171172

172173
''' <summary>
@@ -320,6 +321,9 @@ Public Class CustomEvent
320321
End If
321322
End Sub)
322323

324+
Case EventType.检查更新
325+
UpdateCheckByButton()
326+
323327
Case Else
324328
MyMsgBox("未知的事件类型:" & Type & vbCrLf & "请检查事件类型填写是否正确,或者 PCL 是否为最新版本。", "事件执行失败")
325329
End Select

0 commit comments

Comments
 (0)