aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <an2048@gmail.com>2019-07-22 11:58:32 +0200
committerAlexander Neumann <an2048@gmail.com>2019-07-22 11:58:32 +0200
commit81b2e9d01167ce03c75b95ba1b793df080581608 (patch)
treea35b74e4f7ddba00562e454a03a277b4093e774d /ui
parenttunnel: extract owner of config file for pipe dacl (diff)
downloadwireguard-windows-81b2e9d01167ce03c75b95ba1b793df080581608.tar.xz
wireguard-windows-81b2e9d01167ce03c75b95ba1b793df080581608.zip
ui: update action enabled status also when model items change
This fixes using the Ctrl+A shortcut in the case the log table view never has been focused before. Signed-off-by: Alexander Neumann <an2048@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/logpage.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/logpage.go b/ui/logpage.go
index 9410875f..2eb27fa8 100644
--- a/ui/logpage.go
+++ b/ui/logpage.go
@@ -86,6 +86,7 @@ func NewLogPage() (*LogPage, error) {
lp.logView.Columns().Add(msgCol)
lp.model = newLogModel(lp)
+ lp.model.RowsReset().Attach(setSelectionStatus)
lp.logView.SetModel(lp.model)
setSelectionStatus()