core: Consolidate top-level system state into a singleton.
This commit is contained in:
parent
81e22ae8c7
commit
198b6c9bdd
8 changed files with 167 additions and 106 deletions
|
@ -24,7 +24,7 @@ ConfigureSystem::ConfigureSystem(QWidget* parent) : QWidget(parent), ui(new Ui::
|
|||
ConfigureSystem::~ConfigureSystem() {}
|
||||
|
||||
void ConfigureSystem::setConfiguration() {
|
||||
enabled = !System::IsPoweredOn();
|
||||
enabled = !Core::System::GetInstance().IsPoweredOn();
|
||||
|
||||
if (!enabled) {
|
||||
ReadSystemSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue