mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Add debugMode bool to Calamares::Settings.
This commit is contained in:
parent
6559197c4b
commit
c13179fdf0
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue