Apply gofmt
This commit is contained in:
parent
67d14977fa
commit
1265d9cff8
|
@ -22,11 +22,11 @@ func NewAerc(logger *log.Logger) *Aerc {
|
||||||
tabs := libui.NewTabs()
|
tabs := libui.NewTabs()
|
||||||
|
|
||||||
mainGrid := libui.NewGrid().Rows([]libui.GridSpec{
|
mainGrid := libui.NewGrid().Rows([]libui.GridSpec{
|
||||||
libui.GridSpec{libui.SIZE_EXACT, 1},
|
{libui.SIZE_EXACT, 1},
|
||||||
libui.GridSpec{libui.SIZE_WEIGHT, 1},
|
{libui.SIZE_WEIGHT, 1},
|
||||||
}).Columns([]libui.GridSpec{
|
}).Columns([]libui.GridSpec{
|
||||||
libui.GridSpec{libui.SIZE_EXACT, 20},
|
{libui.SIZE_EXACT, 20},
|
||||||
libui.GridSpec{libui.SIZE_WEIGHT, 1},
|
{libui.SIZE_WEIGHT, 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
statusbar := libui.NewStack()
|
statusbar := libui.NewStack()
|
||||||
|
@ -42,11 +42,11 @@ func NewAerc(logger *log.Logger) *Aerc {
|
||||||
|
|
||||||
acctPlaceholder := func(sidebar, body rune, name string) {
|
acctPlaceholder := func(sidebar, body rune, name string) {
|
||||||
accountGrid := libui.NewGrid().Rows([]libui.GridSpec{
|
accountGrid := libui.NewGrid().Rows([]libui.GridSpec{
|
||||||
libui.GridSpec{libui.SIZE_WEIGHT, 1},
|
{libui.SIZE_WEIGHT, 1},
|
||||||
libui.GridSpec{libui.SIZE_EXACT, 1},
|
{libui.SIZE_EXACT, 1},
|
||||||
}).Columns([]libui.GridSpec{
|
}).Columns([]libui.GridSpec{
|
||||||
libui.GridSpec{libui.SIZE_EXACT, 20},
|
{libui.SIZE_EXACT, 20},
|
||||||
libui.GridSpec{libui.SIZE_WEIGHT, 1},
|
{libui.SIZE_WEIGHT, 1},
|
||||||
})
|
})
|
||||||
// Sidebar placeholder
|
// Sidebar placeholder
|
||||||
accountGrid.AddChild(libui.NewBordered(
|
accountGrid.AddChild(libui.NewBordered(
|
||||||
|
|
|
@ -22,7 +22,8 @@ func NewWorker(source string, logger *log.Logger) (*types.Worker, error) {
|
||||||
Logger: logger,
|
Logger: logger,
|
||||||
}
|
}
|
||||||
switch u.Scheme {
|
switch u.Scheme {
|
||||||
case "imap": fallthrough;
|
case "imap":
|
||||||
|
fallthrough
|
||||||
case "imaps":
|
case "imaps":
|
||||||
worker.Backend = imap.NewIMAPWorker(worker)
|
worker.Backend = imap.NewIMAPWorker(worker)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue