mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:33:09 +02:00
don't init if Settings not init
This commit is contained in:
parent
ddb52348bc
commit
acac2f5a22
1 changed files with 13 additions and 9 deletions
|
@ -73,16 +73,20 @@ namespace Setting {
|
|||
|
||||
void Interface::init() {
|
||||
if (!privateInstance) {
|
||||
qWarning() << "Setting::Interface::init(): Manager not yet created, bailing";
|
||||
return;
|
||||
// WARNING: As long as we are using QSettings this should always be triggered for each Setting::Handle
|
||||
// in an assignment-client - the QSettings backing we use for this means persistence of these
|
||||
// settings from an AC (when there can be multiple terminating at same time on one machine)
|
||||
// is currently not supported
|
||||
qWarning() << "Setting::Interface::init() for key" << _key << "- Manager not yet created." <<
|
||||
"Settings persistence disabled.";
|
||||
} else {
|
||||
// Register Handle
|
||||
privateInstance->registerHandle(this);
|
||||
_isInitialized = true;
|
||||
|
||||
// Load value from disk
|
||||
load();
|
||||
}
|
||||
|
||||
// Register Handle
|
||||
privateInstance->registerHandle(this);
|
||||
_isInitialized = true;
|
||||
|
||||
// Load value from disk
|
||||
load();
|
||||
}
|
||||
|
||||
void Interface::maybeInit() {
|
||||
|
|
Loading…
Reference in a new issue