aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <an2048@gmail.com>2019-07-22 12:00:29 +0200
committerAlexander Neumann <an2048@gmail.com>2019-07-22 12:00:29 +0200
commit82fde28bd7f34a7e72a4f8300fad6e54828ec648 (patch)
treebb0c84410d9af9c379355cfa30832cde5c0fef69 /ui
parentui: update action enabled status also when model items change (diff)
downloadwireguard-windows-82fde28bd7f34a7e72a4f8300fad6e54828ec648.tar.xz
wireguard-windows-82fde28bd7f34a7e72a4f8300fad6e54828ec648.zip
ui: use now exposed ItemCountChanged event
Signed-off-by: Alexander Neumann <an2048@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/tunnelspage.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index 64b081de..2eaad53d 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -97,8 +97,7 @@ func NewTunnelsPage() (*TunnelsPage, error) {
disposables.Spare()
- // TODO: expose walk.TableView.itemCountChangedPublisher.Event()
- tp.listView.Property("ItemCount").Changed().Attach(tp.onTunnelsChanged)
+ tp.listView.ItemCountChanged().Attach(tp.onTunnelsChanged)
tp.listView.SelectedIndexesChanged().Attach(tp.onSelectedTunnelsChanged)
tp.listView.ItemActivated().Attach(tp.onTunnelsViewItemActivated)
tp.listView.CurrentIndexChanged().Attach(tp.updateConfView)