aboutsummaryrefslogtreecommitdiff
path: root/ui/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/account.go')
-rw-r--r--ui/account.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/account.go b/ui/account.go
index 85c4751..8b1d0c5 100644
--- a/ui/account.go
+++ b/ui/account.go
@@ -35,6 +35,7 @@ func NewAccountTab(conf *config.AccountConfig,
acc.Worker.PostAction(types.Connect{}, func(msg types.WorkerMessage) {
if _, ok := msg.(types.Ack); ok {
acc.logger.Println("Connected.")
+ acc.Worker.PostAction(types.ListDirectories{}, nil)
} else {
acc.logger.Println("Connection failed.")
}
@@ -73,6 +74,7 @@ func (acc *AccountTab) HandleMessage(msg types.WorkerMessage) {
msg = acc.Worker.ProcessMessage(msg)
switch msg.(type) {
case types.Ack:
+ case types.Unsupported:
// no-op
case types.ApproveCertificate:
// TODO: Ask the user