aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-04-01 16:38:29 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:04:59 +0200
commit8e06aed0fa60a8f7a1369583db8f0d1f60d11912 (patch)
treeb2f03331e6fe97f32ed79530d5fccdd83b38a615 /ui
parentui: work around a bug in walk to have our own tool bar below the tunnels list (diff)
downloadwireguard-windows-8e06aed0fa60a8f7a1369583db8f0d1f60d11912.tar.xz
wireguard-windows-8e06aed0fa60a8f7a1369583db8f0d1f60d11912.zip
ui: add delete action to tool bar
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/manage_tunnels.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/manage_tunnels.go b/ui/manage_tunnels.go
index 14c5afe9..b9b9cb90 100644
--- a/ui/manage_tunnels.go
+++ b/ui/manage_tunnels.go
@@ -97,8 +97,8 @@ func (mtw *ManageTunnelsWindow) setup() error {
addMenuAction, _ := tunnelsToolBar.Actions().AddMenu(addMenu)
addMenuAction.SetText("Add")
- // TODO: Doesn't get added to the toolbar?
deleteAction := walk.NewAction()
+ tunnelsToolBar.Actions().Add(deleteAction)
deleteAction.SetText("Delete")
deleteAction.Triggered().Attach(mtw.onDelete)