create events under UI

This commit is contained in:
cuu
2018-08-10 12:30:16 +08:00
parent c4bfb007eb
commit 0a1944ef80
4 changed files with 12 additions and 4 deletions

6
sysgo/UI/events.go Normal file
View File

@@ -0,0 +1,6 @@
package UI
const (
RUNEVT=1
)

View File

@@ -393,7 +393,7 @@ func (self *MainScreen) RunEXE( cmdpath string) {
cmdpath = strings.Trim(cmdpath," ")
cmdpath = CmdClean(cmdpath)
event.Post(event.RUNEVT,cmdpath)
event.Post(RUNEVT,cmdpath)
}