diff --git a/src/libcalamaresui/Settings.cpp b/src/libcalamaresui/Settings.cpp index de3873dce..d988702b7 100644 --- a/src/libcalamaresui/Settings.cpp +++ b/src/libcalamaresui/Settings.cpp @@ -42,6 +42,7 @@ Settings::instance() Settings::Settings( bool debugMode, QObject* parent ) : QObject( parent ) + , m_debug( debugMode ) { QFileInfo settingsFile( CalamaresUtils::appDataDir().absoluteFilePath( "settings.conf" ) ); if ( debugMode ) @@ -135,4 +136,11 @@ Settings::modules( Phase phase ) const } +bool +Settings::debugMode() const +{ + return m_debug; +} + + } diff --git a/src/libcalamaresui/Settings.h b/src/libcalamaresui/Settings.h index da7a6cff2..ae48664bc 100644 --- a/src/libcalamaresui/Settings.h +++ b/src/libcalamaresui/Settings.h @@ -42,9 +42,13 @@ public: QStringList modules( Phase phase ) const; + bool debugMode() const; + private: static Settings* s_instance; + bool m_debug; + QStringList m_modulesSearchPaths; QStringList m_modulesPrepareList;