mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
main_screen
remove all DBUS handler,and in related plugins wifi use wpa-connect to do the connecting / scanning , use wpa_cli to do disconnect
This commit is contained in:
@@ -96,8 +96,8 @@ func (self *TinyCloudPage) SetCoords() {
|
||||
}
|
||||
|
||||
func (self *TinyCloudPage) SetLabels() {
|
||||
if self.Screen.DBusManager.IsWifiConnectedNow() {
|
||||
self.IP = self.Screen.DBusManager.GetWifiIP()
|
||||
if self.Screen.IsWifiConnectedNow() {
|
||||
self.IP = self.Screen.GetWirelessIP()
|
||||
fmt.Printf("TinyCould : %s\n",self.IP)
|
||||
}else {
|
||||
self.IP = "xxx.xxx.xxx.xxx"
|
||||
@@ -179,7 +179,7 @@ func (self *TinyCloudPage) KeyDown( ev *event.Event ) {
|
||||
|
||||
func (self *TinyCloudPage) Draw() {
|
||||
self.ClearCanvas()
|
||||
if self.Screen.DBusManager.IsWifiConnectedNow() {
|
||||
if self.Screen.IsWifiConnectedNow() {
|
||||
self.Icons["online"].NewCoord(self.Coords["online"].X, self.Coords["online"].Y)
|
||||
self.Icons["online"].Draw()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user