Adriaan de Groot
8fe2e1f68a
[finished] Make the debug-log less cryptic
2021-03-15 21:22:20 +01:00
Adriaan de Groot
33fec86ef6
[welcome] Improve logging of requirements-checking
...
- less chatty when 0-results come in
- compress the welcome debug to one output chunk
2021-03-15 20:53:59 +01:00
Adriaan de Groot
416c2c9689
[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
2021-03-15 12:51:42 +01:00
Adriaan de Groot
44ac33845d
Merge branch 'fix-usersq' into calamares
2021-03-15 12:41:01 +01:00
Adriaan de Groot
46f7e6c131
Merge branch 'hotfix-38' into calamares
2021-03-15 12:39:41 +01:00
Adriaan de Groot
8348bd2bb7
[usersq] Call setters for checkboxes
2021-03-15 12:36:54 +01:00
Adriaan de Groot
d2c0c8d638
[users] Grab hostname from config on creation
2021-03-15 11:53:14 +01:00
Adriaan de Groot
b17e01edff
[usersq] Call setters to move values back from QML to the C++ side
2021-03-15 11:45:57 +01:00
Adriaan de Groot
b96ad4b166
[usersq] Hook up QML fields and the Config object
...
For properties, we can bind directly to the Config properties
for loginName, fullName, and also to checkbox-style (bool)
properties and passwords.
2021-03-15 00:24:10 +01:00
Adriaan de Groot
e60f8bcd06
[usersq] Tidy job creation and unnecessary code
2021-03-15 00:24:10 +01:00
Adriaan de Groot
4ffa79d4cf
[users] In code, consistently [aA]utoLogin as name
...
There was a mix of autologin and autoLogin, leading to confusion
in the code. QML is sensitive to this, so go to one consistent name.
(Although the names of the settings in the `.conf` file are
different again)
2021-03-15 00:24:10 +01:00
Adriaan de Groot
287047fe1a
[users] Tidy up job creation -- leave it to Config
2021-03-14 23:52:12 +01:00
Adriaan de Groot
98d42719e1
Merge pull request #1622 from Chrysostomus/btrfs-subvol
...
[fstab][mount] Create and mount btrfs subvolumes in generalized manner
2021-03-14 23:38:30 +01:00
Adriaan de Groot
cdbc5a7b4b
Merge pull request #1652 from Conan-Kudo/rm-urpmi
...
[packages] Drop urpmi support
2021-03-14 17:41:10 +01:00
Adriaan de Groot
cc310a04b8
[users] Fix schema to match actual field names
2021-03-14 16:32:02 +01:00
Calamares CI
3fafeaf09a
i18n: [dummypythonqt] Automatic merge of Transifex translations
2021-03-14 16:17:09 +01:00
Adriaan de Groot
8c7e214376
[users] Make the example config usable
...
Although the example configurations shouldn't really be used
as a sample of how to configure **your** Calamares for your
distro, many distro's do just copy the examples. So leave
traces of the OEM-configuration settings in the example,
and give the standard configuration a 'nothing changed'
set of presets.
2021-03-14 16:07:04 +01:00
Adriaan de Groot
caf18321df
[users] Adjust UI to is-field-editable based on presets
2021-03-14 14:20:10 +01:00
Adriaan de Groot
7bae625f46
[users] Pick up UI changes based on the values from Config
2021-03-14 14:14:29 +01:00
Adriaan de Groot
b4a21d7aca
[libcalamares] Add macro CONFIG_PREVENT_EDITING to handle uneditable fields
...
Boilerplate code for avoiding accidental setting of an internal
field when the UI is editable and the underlying data isn't.
2021-03-14 13:30:26 +01:00
Adriaan de Groot
3ea796d009
[users] 'undo' changes to values if the UI is wonky
...
- you can still call set*(), eg. from the UI, when the field is
not editable. Although the code previously ignored the change,
this would lead to a mismatch between what the UI is showing
(the changed value) and what the Config has (old value).
Emit a changed-signal (notify) with the old value so that the
UI is changed *back* as soon as possible.
2021-03-14 12:27:59 +01:00
Adriaan de Groot
9fcf9b5fa8
[users] Pick up values from Config object on startup
...
- Previously, we 'knew' that the values in Config were empty,
so didn't have to set them from the Config when building
the (widget) page
2021-03-14 12:14:33 +01:00
Adriaan de Groot
941cc9c48b
[users] Match presets to the actual name of fields
2021-03-14 12:14:33 +01:00
Adriaan de Groot
2e90a8d829
[libcalamares] Report preset mis-configurations
...
- warn about fields applied twice (program error)
- warn about fields not used (configuration error)
- add operator<< for "clean" looking preset application
2021-03-14 12:14:33 +01:00
Adriaan de Groot
d8dff3dc65
[libcalamares] Replace loadPresets() with an applicative style
...
Build up the list of known presets by what the Config-object
expects, not by what the Config file provides. This allows
early detection of mis-matched configurations.
Presets can only apply to Q_PROPERTY properties, and the
preset must match the property name.
2021-03-14 12:14:33 +01:00
Adriaan de Groot
448e478b6d
[users] Use base Config and its Preset-handling
2021-03-12 13:54:06 +01:00
Adriaan de Groot
381a4f9b53
[users] Add preset to users module Config
2021-03-12 13:25:16 +01:00
Neal Gompa
d39f2b8c3e
[packages] Drop urpmi support
...
This code is essentially untested and unused, as OpenMandriva has been
using DNF for three years now.
Reference: https://www.openmandriva.org/en/news/article/switching-to-rpmv4
2021-03-11 06:32:49 -05:00
Adriaan de Groot
cb67c79203
Merge pull request #1651 from demmm/calamares
...
[finishedq] add license for svg file
2021-03-09 20:35:22 +01:00
demmm
a7b46a02eb
[finishedq] add license for svg file
2021-03-09 19:45:32 +01:00
Adriaan de Groot
98524708cc
[partition] Chase namespace change for Units
2021-03-09 19:45:12 +01:00
Adriaan de Groot
ea63f48c31
[libcalamares] Put the units in a nested namespace
...
- this makes it much easier to use the literal suffixes
by using the namespace rather than individual operators.
2021-03-09 18:21:58 +01:00
Adriaan de Groot
430b3b0722
REUSE: tag the schema file (badly, missing an email address)
2021-03-09 13:55:20 +01:00
Adriaan de Groot
44602d0237
[finishedq] CMake: missing keyword
2021-03-06 15:33:15 +01:00
Adriaan de Groot
83e6476be8
[finishedq] Tighten up requirements
2021-03-06 15:23:23 +01:00
Adriaan de Groot
e9384deb5d
[finishedq] Document the meaningful settings of the config file
2021-03-06 15:20:24 +01:00
Adriaan de Groot
bd775a16e2
[finished] Add a restart-anyway API to Config
...
It's possible to ignore the "user setting" for restart-now
and call doRestart(true) directly. This is intended for
use with specific UIs that make that choice clear for the user.
Hook up both [finished] and [finishedq] to the "traditional"
restart-if-the-box-is-ticked logic although the example
QML doesn't expose that box.
2021-03-06 13:51:45 +01:00
Adriaan de Groot
aa004503c5
[finished] Expand Config object's repertoire of notification-API
2021-03-06 13:38:02 +01:00
Adriaan de Groot
19874ebc3a
[finished] Document doRestart() better
...
- move all the 'really want restart' logic to restartNowWanted()
2021-03-05 23:19:56 +01:00
Adriaan de Groot
f94853eb28
[finishedq] Always restart if possible
2021-03-05 23:17:57 +01:00
Adriaan de Groot
075a28a06d
[finished] Log the doRestart() attempt
2021-03-05 22:59:53 +01:00
Adriaan de Groot
0d7c1ec130
[finishedq] Port QML back to using Config object
2021-03-05 22:59:04 +01:00
Adriaan de Groot
5b376b41bf
[finishedq] Chase business logic in Config object
2021-03-05 22:40:38 +01:00
Adriaan de Groot
3ad3a9adfc
[finished] Move the business logic to the Configt object
2021-03-05 22:27:24 +01:00
demmm
7acc8bcec3
[finishedq] adding QML finished module
...
module builds & runs, config connections are not registering
no errors
finishedq.qml is offering a different option though, running commands directly in qml
plasma-framework executer is used for that
2021-02-27 22:04:30 +01:00
Adriaan de Groot
d3acc39d2d
Merge branch 'qml-finished' into calamares
2021-02-23 16:17:14 +01:00
Adriaan de Groot
a4682db987
[finished] Tidy up notification-at-end (and allow failed notifications)
2021-02-23 16:05:48 +01:00
Adriaan de Groot
5af614daf7
[finished] Allow positive and negative notifications at end.
2021-02-23 15:59:40 +01:00
Adriaan de Groot
ec4b6752d6
[finished] Move notification to Config
2021-02-23 15:54:19 +01:00
Adriaan de Groot
76a2791b12
[finished] Clean up includes
2021-02-23 15:42:14 +01:00