diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-04-01 16:38:29 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-04-23 11:04:59 +0200 |
commit | 250344dc58a6bff4ed9c4ce75c3df465ab289a82 (patch) | |
tree | b2f03331e6fe97f32ed79530d5fccdd83b38a615 /ui/manage_tunnels.go | |
parent | ui: work around a bug in walk to have our own tool bar below the tunnels list (diff) | |
download | wireguard-windows-250344dc58a6bff4ed9c4ce75c3df465ab289a82.tar.xz wireguard-windows-250344dc58a6bff4ed9c4ce75c3df465ab289a82.zip |
ui: add delete action to tool bar
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Diffstat (limited to '')
-rw-r--r-- | ui/manage_tunnels.go | 2 |
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) |