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/msg
|
@ -37,7 +37,7 @@ func (Unsubscribe) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
if len(args) != 1 {
|
||||
return errors.New("Usage: unsubscribe")
|
||||
}
|
||||
widget := aerc.SelectedTab().(widgets.ProvidesMessage)
|
||||
widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
|
||||
msg, err := widget.SelectedMessage()
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -135,7 +135,7 @@ func parseUnsubscribeMethods(header string) (methods []*url.URL) {
|
|||
}
|
||||
|
||||
func unsubscribeMailto(aerc *widgets.Aerc, u *url.URL) error {
|
||||
widget := aerc.SelectedTab().(widgets.ProvidesMessage)
|
||||
widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
|
||||
acct := widget.SelectedAccount()
|
||||
if acct == nil {
|
||||
return errors.New("No account selected")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue