Browse Source

trim output in GateWayPage Click()

cuu 5 years ago
parent
commit
6c0bbb1101
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Menu/GameShell/10_Settings/GateWay/gateway_page.go

+ 1 - 1
Menu/GameShell/10_Settings/GateWay/gateway_page.go

@@ -221,7 +221,7 @@ func (self *GateWayPage) Click() {
   if cur_li.Active == true {
     out := UI.System( "sudo ip route | grep default | cut -d \" \" -f3"  )
     if len(out) > 7 {
-      self.Screen.MsgBox.SetText(out)
+      self.Screen.MsgBox.SetText(strings.Trim(out,"\r\n "))
       self.Screen.MsgBox.Draw()
       self.Screen.SwapAndShow()      
     }