mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Introduction of new Dictionary class (#1446)
* Adapting to introduction of new Dictionary class in Ghoul * Mainly replacing usage of float instead of doubles as expected * Adjust to the lack of the hasKeyAndValue function
This commit is contained in:
@@ -196,8 +196,10 @@ void CefWebGuiModule::internalInitialize(const ghoul::Dictionary& configuration)
|
||||
}
|
||||
);
|
||||
|
||||
if (configuration.hasValue<float>(GuiScaleInfo.identifier)) {
|
||||
_guiScale = configuration.value<float>(GuiScaleInfo.identifier);
|
||||
if (configuration.hasValue<double>(GuiScaleInfo.identifier)) {
|
||||
_guiScale = static_cast<float>(
|
||||
configuration.value<double>(GuiScaleInfo.identifier)
|
||||
);
|
||||
}
|
||||
|
||||
_enabled = configuration.hasValue<bool>(EnabledInfo.identifier) &&
|
||||
|
||||
Reference in New Issue
Block a user