@@ -95,8 +95,11 @@ func (a *appData) createUI(lastHost string) {
95
95
96
96
a .win .SetContent (NewSplit ("Gotik" , container .NewBorder (container .NewVBox (container .NewBorder (nil , nil ,
97
97
widget .NewButtonWithIcon ("" , theme .ContentRemoveIcon (), func () { a .removeHost (sel ) }),
98
- container .NewHBox (widget .NewButtonWithIcon ("" , theme .ContentAddIcon (), func () { a .newHost (sel ) }),
99
- widget .NewButtonWithIcon ("" , theme .MediaReplayIcon (), func () { a .reconnectHost (updateStatus , sel ) })),
98
+ container .NewHBox (
99
+ widget .NewButtonWithIcon ("" , theme .ContentAddIcon (), func () { a .newHost (sel ) }),
100
+ widget .NewButtonWithIcon ("" , theme .MediaReplayIcon (), func () { a .reconnectHost (updateStatus , sel ) }),
101
+ widget .NewButtonWithIcon ("" , theme .SearchIcon (), func () { a .displayNeighbor () }),
102
+ ),
100
103
sel ), useTailScale ),
101
104
nil , nil , nil , tree ),
102
105
container .NewBorder (header , footer , nil , nil , tabs )))
@@ -146,6 +149,19 @@ func (a *appData) tailScaleDisconnect() {
146
149
a .cancel = func () {}
147
150
}
148
151
152
+ func (a * appData ) displayNeighbor () {
153
+ neighbors := widget .NewListWithData (a .neighbors ,
154
+ func () fyne.CanvasObject {
155
+ return widget .NewLabel ("Mikrotik router somewhere (cc:2d:e0:e1:09:2a, 255.255.255.255) Mikrotik - 6.49.2 (stable)" )
156
+ },
157
+ func (i binding.DataItem , o fyne.CanvasObject ) {
158
+ o .(* widget.Label ).Bind (i .(binding.String ))
159
+ })
160
+ content := container .New (& moreSpace {a .win }, neighbors )
161
+
162
+ dialog .ShowCustom ("Neighbors" , "Close" , content , a .win )
163
+ }
164
+
149
165
func (a * appData ) newHost (sel * widget.Select ) {
150
166
host := widget .NewEntry ()
151
167
host .PlaceHolder = "127.0.0.1"
0 commit comments