mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 10:22:41 +01:00
trim output in GateWayPage Click()
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user