From 57ccefa1e5bca5c67f61030d0cab2871542d70da Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 1 Apr 2019 05:35:02 -0400 Subject: [PATCH] [libcalamares] Distinguish "install" and "setup" modes. - This initial bit of code re-uses the *dont-chroot* setting; it may need to be made independent. - This branch will use `isSetupMode()` to adjust user-visible strings to match the intended use. SEE #1100 --- src/libcalamares/Settings.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libcalamares/Settings.h b/src/libcalamares/Settings.h index 4d7568c7d..c72e30421 100644 --- a/src/libcalamares/Settings.h +++ b/src/libcalamares/Settings.h @@ -57,6 +57,15 @@ public: bool debugMode() const; bool doChroot() const; + /** @brief Distinguish between "install" and "setup" modes. + * + * This influences user-visible strings, for instance using the + * word "setup" instead of "install" where relevant. + * + * NOTE: it's a synonym for !doChroot() for now, but may become + * an independent setting. + */ + bool isSetupMode() const { return !doChroot(); } bool disableCancel() const;