summary refs log tree commit diff stats
path: root/widgets/account-wizard.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-22 11:35:55 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-22 11:35:55 -0400
commit9b19e3ad054132fdab4062915f70122faaa5c163 (patch)
tree4a41b871550f6fd692711a56aa9b2b7898c8c8f2 /widgets/account-wizard.go
parent1a45b793c7d1d59e209be3eb4b4f794a78085e5d (diff)
downloadaerc-9b19e3ad054132fdab4062915f70122faaa5c163.tar.gz
Show account wizard if no accounts configured
Diffstat (limited to 'widgets/account-wizard.go')
-rw-r--r--widgets/account-wizard.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index aa68ed7..6cd541e 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -356,8 +356,8 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
 			"To add another account in the future, run ':new-account'."))
 	selecter = newSelecter([]string{
 		"Previous",
-		"Finish",
 		"Finish & open tutorial",
+		"Finish",
 	}, 1).OnChoose(func(option string) {
 		switch option {
 		case "Previous":
@@ -436,11 +436,8 @@ func (wizard *AccountWizard) finish(tutorial bool) {
 	}
 
 	file, err := ini.Load(accountsConf)
-	if err == os.ErrNotExist {
+	if err != nil {
 		file = ini.Empty()
-	} else if err != nil {
-		wizard.errorFor(nil, err)
-		return
 	}
 
 	var sec *ini.Section
12:59:45 +0200 committer Anselm R. Garbe <arg@10kloc.org> 2006-08-25 12:59:45 +0200 new color stuff/new rendering stuff' href='/acidbong/suckless/dwm/commit/config.default.h?h=2.7&id=b55bd709ee6d0b09c141bf5ffe0647866e0374ef'>b55bd70 ^
97ced11 ^

b55bd70 ^


19390b1 ^
97ced11 ^
19390b1 ^
b515765 ^

b515765 ^
19dcbc5 ^






42fd392 ^
19dcbc5 ^












42fd392 ^
19dcbc5 ^










b515765 ^

d6a6eca ^
2dd5212 ^
b515765 ^

d6a6eca ^
e21d93b ^
a08d83b ^
b515765 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68