|
function onclick_startmenu_reboot()
-- restart computer directly
System:Reboot()
-- wxsUI('UI_Shutdown', 'full.jcfg')
return 0
-- return 1 -- for call system dialog
end
function onclick_startmenu_shutdown()
-- shutdown computer directly
System::Shutdown()
-- wxsUI('UI_Shutdown', 'full.jcfg')
return 0
-- return 1 -- for call system dialog
end
S大,开始菜单点击关机、重启我想直接生效,所以WinXShell.lua我修改为上面这样,但在此电脑右键点属性却打不开系统属性页面了,点了没反应。改回下面那样,就没问题。按理说UI_Shutdown应该和UI_SystemInfo不相干呀
-- System:Reboot()
wxsUI('UI_Shutdown', 'full.jcfg')
-- System::Shutdown()
wxsUI('UI_Shutdown', 'full.jcfg')
|
|