aboutsummaryrefslogtreecommitdiff
path: root/go-src/windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'go-src/windows.go')
-rw-r--r--go-src/windows.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/go-src/windows.go b/go-src/windows.go
index f32d0a7..b88c224 100644
--- a/go-src/windows.go
+++ b/go-src/windows.go
@@ -249,8 +249,19 @@ func accountWindow(...string) {
if !updatePassword(pass[0], pass[1]) {
defer showError(invalidArgument, accountWindow)
} else {
- logoutUser()
- defer StartupWindow()
+ defer accountWindow()
+ }
+ case 2:
+ newName := formWindow("Editing", accountWindow,
+ []formInput{
+ {"Current password", inputBackSpec, nil},
+ {"New name", "", stringValidName},
+ },
+ )
+ if !updateName(newName[0], newName[1]) {
+ defer showError(invalidArgument, accountWindow)
+ } else {
+ defer accountWindow()
}
default:
defer showError(invalidCommand, accountWindow)