Commit 45389ac1 by 陶腾飞

update

parent 83984473
No preview for this file type
No preview for this file type
...@@ -46,7 +46,6 @@ func DealMsgEnter(ip string,msgtype string,unmsg []byte) []byte { ...@@ -46,7 +46,6 @@ func DealMsgEnter(ip string,msgtype string,unmsg []byte) []byte {
// 关于 report 报告 的 消息处理 // 关于 report 报告 的 消息处理
func (rep *MJreport)Msg_Deal() interface{} { func (rep *MJreport)Msg_Deal() interface{} {
PrintLog(rep)
switch rep.Report{ switch rep.Report{
case Msg_Report_Offwork: case Msg_Report_Offwork:
......
...@@ -135,7 +135,7 @@ func siEnter_admin(softname string){ ...@@ -135,7 +135,7 @@ func siEnter_admin(softname string){
// //
//--------------------------------------------------------------- //---------------------------------------------------------------
func menuInitWxDriveSync(ni * walk.NotifyIcon){ func menuInitWxDriveSync(ni * walk.NotifyIcon){
fa := "用户工具" fa := "微盘同步"
sub := [...]string{"初始化","开启服务器同步到微盘","开启微盘同步到服务器","说明"} sub := [...]string{"初始化","开启服务器同步到微盘","开启微盘同步到服务器","说明"}
// 建立空菜单 // 建立空菜单
nm,err := walk.NewMenu() nm,err := walk.NewMenu()
...@@ -200,7 +200,7 @@ func wxdsExplain(){ ...@@ -200,7 +200,7 @@ func wxdsExplain(){
//--------------------------------------------------------------- //---------------------------------------------------------------
func menuInitUserTools(ni * walk.NotifyIcon){ func menuInitUserTools(ni * walk.NotifyIcon){
fa := "用户工具" fa := "用户工具"
sub := [...]string{"部门共享连接微盘","桌面文件连接微盘","隐藏桌面图标","恢复桌面图标"} sub := [...]string{"隐藏桌面图标","恢复桌面图标"}
// 建立空菜单 // 建立空菜单
nm,err := walk.NewMenu() nm,err := walk.NewMenu()
if err != nil { if err != nil {
...@@ -217,12 +217,8 @@ func menuInitUserTools(ni * walk.NotifyIcon){ ...@@ -217,12 +217,8 @@ func menuInitUserTools(ni * walk.NotifyIcon){
// 为子按钮 添加事件 // 为子按钮 添加事件
switch i{ switch i{
case 0: case 0:
na.Triggered().Attach(func(){utDeptLinkWxPan();return})
case 1:
na.Triggered().Attach(utDesktopLinkWxPan)
case 2:
na.Triggered().Attach(utHideIcon) na.Triggered().Attach(utHideIcon)
case 3: case 1:
na.Triggered().Attach(utShowIcon) na.Triggered().Attach(utShowIcon)
} }
...@@ -242,12 +238,7 @@ func menuInitUserTools(ni * walk.NotifyIcon){ ...@@ -242,12 +238,7 @@ func menuInitUserTools(ni * walk.NotifyIcon){
sysmenu.SetVisible(true) sysmenu.SetVisible(true)
sysmenu.SetEnabled(true) sysmenu.SetEnabled(true)
} }
func utDeptLinkWxPan(){
public.Msg("等等嘛,还没好呢!")
}
func utDesktopLinkWxPan(){
public.Msg("别别别别急,缓一缓!")
}
func utHideIcon(){ func utHideIcon(){
public.Msg("emmmmmmm,大概下周吧,这周无望哈") public.Msg("emmmmmmm,大概下周吧,这周无望哈")
} }
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment