install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 9d4127c9ae024e9734d377c971122f6f8b9793db
parent 610a78e62a546acb9916cfd018a2e9c3ffd188d1
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 16 Nov 2016 13:49:59 +0100

Fix(Users): Now saving users in internal configuration

Diffstat:
Mmain.py | 1+
Mscreens/conf_install/conf_install.py | 5+++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/main.py b/main.py @@ -82,6 +82,7 @@ class Main: nm = 0 t_id = 0 while 1: + print(self.conf_lst) t_id = self.screens[nm].main() if (t_id == -2): return 0 diff --git a/screens/conf_install/conf_install.py b/screens/conf_install/conf_install.py @@ -117,12 +117,13 @@ class Conf_Install: for e in self.users_l: choices.append((e["username"], "Edit "+ e["username"] + " account")); code, tag = self.dlg.menu("Edit / Add Users", title="Users Settings", choices=choices) + if (code == "ok" and tag == "Save"): + self.conf_lst["system.users"] = self.users_l + return 0 if (code == "ok" and tag == "New User"): self.add_new_user() elif (code == "cancel"): return 1 - elif (code == "ok" and tag == "Save"): - return 0 elif (code == "ok"): self.add_new_user(tag)