From 416c2c9689348cb05487c64f6aea86dc19bcdfa2 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 15 Mar 2021 12:51:42 +0100 Subject: [PATCH] [usersq] Reflect editable in the QML - if presets prevent a field from being editable, don't allow the user to edit the field - while here, mention the changes in usersq --- CHANGES | 2 ++ src/modules/usersq/usersq.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 0504cbb3e..7f4f18ab7 100644 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,8 @@ This release contains contributions from (alphabetically by first name): coded setup (which Calamares has had for a long time with @home and similar) and introduce a custom btrfs configuration through the `mount.conf` file. + - The *usersq* module now connects to the internal configuration + object and may be usable for regular installations. # 3.2.38.1 (2021-03-15) # diff --git a/src/modules/usersq/usersq.qml b/src/modules/usersq/usersq.qml index c94e56300..0886bba1b 100644 --- a/src/modules/usersq/usersq.qml +++ b/src/modules/usersq/usersq.qml @@ -56,6 +56,7 @@ Kirigami.ScrollablePage { id: _userNameField width: parent.width + enabled: config.isEditable("fullName") placeholderText: qsTr("Your Full Name") text: config.fullName onTextChanged: config.setFullName(text); @@ -85,6 +86,7 @@ Kirigami.ScrollablePage { id: _userLoginField width: parent.width + enabled: config.isEditable("loginName") placeholderText: qsTr("Login Name") text: config.loginName onTextChanged: config.setLoginName(text)