Conditions | 2 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package ui |
||
18 | func makeConnectionMenu(clientConnectionFunc OpenClientConnection) *fyne.Menu { |
||
19 | manageConnections := &fyne.MenuItem{ |
||
20 | Label: "Manage Connections", |
||
21 | Action: func() { |
||
22 | fileRepoDialog.Open(OnNewConnection(clientConnectionFunc)) |
||
23 | }, |
||
24 | } |
||
25 | |||
26 | quit := &fyne.MenuItem{ |
||
27 | Label: "Quit", |
||
28 | Action: onClosedFunc, |
||
29 | } |
||
30 | |||
31 | return &fyne.Menu{ |
||
32 | Label: "Connections", |
||
33 | Items: []*fyne.MenuItem{ |
||
34 | manageConnections, |
||
35 | quit, |
||
36 | }, |
||
40 |