diff options
author | Robin Jarry <robin@jarry.cc> | 2023-02-05 23:23:02 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-20 14:48:42 +0100 |
commit | 6af06c9dfec03e923589d34187ba8358e3423d5c (patch) | |
tree | 3722f17464ca651ebd12d7d6d55a0e97ae72c8ec /commands/account/connection.go | |
parent | 34db5942bd7b642107002b75de9d5d5c7fe90e4c (diff) | |
download | aerc-6af06c9dfec03e923589d34187ba8358e3423d5c.tar.gz |
statusline: move files to lib/state
These modules will not handle statusline rendering after next commit.
Move them in lib/state to make next commit easier to review.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/account/connection.go')
-rw-r--r-- | commands/account/connection.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/account/connection.go b/commands/account/connection.go index 52b569c4..0a67b2fe 100644 --- a/commands/account/connection.go +++ b/commands/account/connection.go @@ -3,7 +3,7 @@ package account import ( "errors" - "git.sr.ht/~rjarry/aerc/lib/statusline" + "git.sr.ht/~rjarry/aerc/lib/state" "git.sr.ht/~rjarry/aerc/widgets" "git.sr.ht/~rjarry/aerc/worker/types" ) @@ -28,14 +28,14 @@ func (Connection) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("No account selected") } cb := func(msg types.WorkerMessage) { - acct.SetStatus(statusline.ConnectionActivity("")) + acct.SetStatus(state.ConnectionActivity("")) } if args[0] == "connect" { acct.Worker().PostAction(&types.Connect{}, cb) - acct.SetStatus(statusline.ConnectionActivity("Connecting...")) + acct.SetStatus(state.ConnectionActivity("Connecting...")) } else { acct.Worker().PostAction(&types.Disconnect{}, cb) - acct.SetStatus(statusline.ConnectionActivity("Disconnecting...")) + acct.SetStatus(state.ConnectionActivity("Disconnecting...")) } return nil } |