From c7b646315ad55e13c47edfa7b84a784220e3730b Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 22 Mar 2020 13:21:39 +0100 Subject: [PATCH] [netinstall] Add immutable to groups settings --- src/modules/netinstall/PackageTreeItem.cpp | 1 + src/modules/netinstall/PackageTreeItem.h | 1 + src/modules/netinstall/README.md | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/netinstall/PackageTreeItem.cpp b/src/modules/netinstall/PackageTreeItem.cpp index 089521505..51fa2b13e 100644 --- a/src/modules/netinstall/PackageTreeItem.cpp +++ b/src/modules/netinstall/PackageTreeItem.cpp @@ -52,6 +52,7 @@ PackageTreeItem::PackageTreeItem( const QVariantMap& groupData, PackageTreeItem* , m_postScript( CalamaresUtils::getString( groupData, "post-install" ) ) , m_isCritical( CalamaresUtils::getBool( groupData, "critical", false ) ) , m_isHidden( CalamaresUtils::getBool( groupData, "hidden", false ) ) + , m_showReadOnly( CalamaresUtils::getBool( groupData, "immutable", false ) ) , m_startExpanded( CalamaresUtils::getBool( groupData, "expanded", false ) ) { } diff --git a/src/modules/netinstall/PackageTreeItem.h b/src/modules/netinstall/PackageTreeItem.h index 5f22201cf..89a07aadc 100644 --- a/src/modules/netinstall/PackageTreeItem.h +++ b/src/modules/netinstall/PackageTreeItem.h @@ -117,6 +117,7 @@ private: QString m_postScript; bool m_isCritical = false; bool m_isHidden = false; + bool m_showReadOnly = false; bool m_startExpanded = false; }; diff --git a/src/modules/netinstall/README.md b/src/modules/netinstall/README.md index a8803edd5..cda4b6c88 100644 --- a/src/modules/netinstall/README.md +++ b/src/modules/netinstall/README.md @@ -48,8 +48,12 @@ More keys (per group) are supported: - *critical*: if true, make the installation process fail if installing any of the packages in the group fails. Otherwise, just log a warning. Defaults to false. + - *immutable*: if true, the state of the group (and all its subgroups) + cannot be changed; it really only makes sense in combination + with *selected* set to true. This only affects the user-interface. - *expanded*: if true, the group is shown in an expanded form (that is, - not-collapsed) in the treeview on start. + not-collapsed) in the treeview on start. This only affects the user- + interface. - *subgroups*: if present this follows the same structure as the top level of the YAML file, allowing there to be sub-groups of packages to an arbitary depth