Skip to content
Snippets Groups Projects
Commit c13179fd authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Add debugMode bool to Calamares::Settings.

parent 6559197c
Branches
Tags
No related merge requests found
...@@ -42,6 +42,7 @@ Settings::instance() ...@@ -42,6 +42,7 @@ Settings::instance()
Settings::Settings( bool debugMode, QObject* parent ) Settings::Settings( bool debugMode, QObject* parent )
: QObject( parent ) : QObject( parent )
, m_debug( debugMode )
{ {
QFileInfo settingsFile( CalamaresUtils::appDataDir().absoluteFilePath( "settings.conf" ) ); QFileInfo settingsFile( CalamaresUtils::appDataDir().absoluteFilePath( "settings.conf" ) );
if ( debugMode ) if ( debugMode )
...@@ -135,4 +136,11 @@ Settings::modules( Phase phase ) const ...@@ -135,4 +136,11 @@ Settings::modules( Phase phase ) const
} }
bool
Settings::debugMode() const
{
return m_debug;
}
} }
...@@ -42,9 +42,13 @@ public: ...@@ -42,9 +42,13 @@ public:
QStringList modules( Phase phase ) const; QStringList modules( Phase phase ) const;
bool debugMode() const;
private: private:
static Settings* s_instance; static Settings* s_instance;
bool m_debug;
QStringList m_modulesSearchPaths; QStringList m_modulesSearchPaths;
QStringList m_modulesPrepareList; QStringList m_modulesPrepareList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment