mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
trim output in GateWayPage Click()
This commit is contained in:
parent
84bf520bb5
commit
6c0bbb1101
@ -221,7 +221,7 @@ func (self *GateWayPage) Click() {
|
|||||||
if cur_li.Active == true {
|
if cur_li.Active == true {
|
||||||
out := UI.System( "sudo ip route | grep default | cut -d \" \" -f3" )
|
out := UI.System( "sudo ip route | grep default | cut -d \" \" -f3" )
|
||||||
if len(out) > 7 {
|
if len(out) > 7 {
|
||||||
self.Screen.MsgBox.SetText(out)
|
self.Screen.MsgBox.SetText(strings.Trim(out,"\r\n "))
|
||||||
self.Screen.MsgBox.Draw()
|
self.Screen.MsgBox.Draw()
|
||||||
self.Screen.SwapAndShow()
|
self.Screen.SwapAndShow()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user