Selaa lähdekoodia

cut sm_text in bluetooth ,infopage

cuu 5 vuotta sitten
vanhempi
commit
af6e325bb3
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      Menu/GameShell/10_Settings/Bluetooth/bluetooth_page.go

+ 3 - 1
Menu/GameShell/10_Settings/Bluetooth/bluetooth_page.go

@@ -237,7 +237,9 @@ func (self *BleInfoPage) GenList() {
       sm_text = fmt.Sprintf("%v",v)
     }
     
-
+    if len(sm_text) > 20 {
+      sm_text = sm_text[:20]
+    }
     li.SetSmallText(sm_text)
     li.PosX = 2