Add debugMode bool to Calamares::Settings.
This commit is contained in:
parent
6559197c4b
commit
c13179fdf0
@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
Settings::debugMode() const
|
||||||
|
{
|
||||||
|
return m_debug;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user