[libcalamares] Add query for kpmcore status
This commit is contained in:
parent
7adbc8cda6
commit
1674c81e9c
@ -44,7 +44,6 @@ static bool s_kpm_loaded = false;
|
||||
static bool s_loaded = false;
|
||||
static std::shared_ptr< InternalManager > s_backend;
|
||||
|
||||
|
||||
InternalManager::InternalManager()
|
||||
{
|
||||
Q_ASSERT( !s_loaded );
|
||||
@ -100,5 +99,11 @@ KPMManager::KPMManager()
|
||||
|
||||
KPMManager::~KPMManager() {}
|
||||
|
||||
KPMManager::operator bool() const
|
||||
{
|
||||
return s_kpm_loaded;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Partition
|
||||
} // namespace CalamaresUtils
|
||||
|
@ -48,8 +48,11 @@ public:
|
||||
KPMManager();
|
||||
~KPMManager();
|
||||
|
||||
/// @brief Is KPMCore loaded correctly?
|
||||
operator bool() const;
|
||||
private:
|
||||
std::shared_ptr< InternalManager > m_d;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Partition
|
||||
|
Loading…
Reference in New Issue
Block a user