mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[libcalamaresui] Stub requirements checking.
Introduce a method checkRequirements() into the module system so that individual modules can do their own checking (as opposed to stuffing it all into the welcome module).
This commit is contained in:
parent
d63f8f6922
commit
24e04645b6
5 changed files with 33 additions and 0 deletions
|
@ -315,4 +315,18 @@ ModuleManager::loadModules()
|
|||
} );
|
||||
}
|
||||
|
||||
void
|
||||
ModuleManager::checkRequirements()
|
||||
{
|
||||
QTimer::singleShot( 0, this, [ this ]()
|
||||
{
|
||||
for (const auto& module : m_loadedModulesByInstanceKey )
|
||||
{
|
||||
module->checkRequirements();
|
||||
}
|
||||
|
||||
emit modulesChecked();
|
||||
} );
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue