tabs: rename SelectedTab to SelectedTabContent
This function returns an ui.Drawable. Use a more explicit name. This prepares for adding a new SelectedTab function which will return an ui.Tab. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Koni Marti <koni.marti@gmail.com>
This commit is contained in:
parent
c49a065496
commit
c841f36513
29 changed files with 36 additions and 36 deletions
commands
|
@ -33,7 +33,7 @@ func (ExecCmd) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
cmd := exec.Command(args[1], args[2:]...)
|
||||
env := os.Environ()
|
||||
|
||||
switch view := aerc.SelectedTab().(type) {
|
||||
switch view := aerc.SelectedTabContent().(type) {
|
||||
case *widgets.AccountView:
|
||||
env = append(env, fmt.Sprintf("account=%s", view.AccountConfig().Name))
|
||||
env = append(env, fmt.Sprintf("folder=%s", view.Directories().Selected()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue