mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat(包管理): 添加创建新包的功能并更新文档
添加pkg init命令用于创建新包,包括生成package.json和主代码文件模板 新增storage命令及相关帮助文档 更新安装器版本号并改进GUI事件处理
This commit is contained in:
@@ -592,10 +592,14 @@ end
|
||||
|
||||
function GUIManager:handleEvents()
|
||||
while self.running do
|
||||
-- Safely get the pullEvent function
|
||||
-- Safely get the pullEvent function with fallback to rc.pullEvent
|
||||
local pullEventFunc = os.pullEvent
|
||||
if type(pullEventFunc) ~= "function" then
|
||||
error("os.pullEvent is not a function")
|
||||
-- Try using rc.pullEvent as fallback
|
||||
pullEventFunc = rc and rc.pullEvent
|
||||
if type(pullEventFunc) ~= "function" then
|
||||
error("Neither os.pullEvent nor rc.pullEvent is available")
|
||||
end
|
||||
end
|
||||
|
||||
-- Get the next event
|
||||
|
||||
Reference in New Issue
Block a user