Showing the changes to interface/src/Menu.cpp (1 of 3 files). Show all
Unified · Split
| @@ -287,12 +287,13 @@ Menu::Menu() { · 286 unmodified lines | |||
| 287 | } | 287 | } |
| 288 | }); | 288 | }); |
| 289 | 289 | ||
| 290 | // Settings > Entity Script Whitelist | 290 | // Settings > Entity Script / QML Whitelist |
| 291 | action = addActionToQMenuAndActionHash(settingsMenu, "Entity Script / QML Whitelist"); | 291 | action = addActionToQMenuAndActionHash(settingsMenu, "Entity Script / QML Whitelist"); |
| 292 | connect(action, &QAction::triggered, [] { | 292 | connect(action, &QAction::triggered, [] { |
| 293 | auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"); | 293 | auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"); |
| 294 | auto hmd = DependencyManager::get<HMDScriptingInterface>(); | 294 | auto hmd = DependencyManager::get<HMDScriptingInterface>(); |
| 295 | 295 | ||
| 296 | DependencyManager::get<OffscreenUi>()->clearCache(); | ||
| 296 | tablet->pushOntoStack("hifi/dialogs/security/EntityScriptQMLWhitelist.qml"); | 297 | tablet->pushOntoStack("hifi/dialogs/security/EntityScriptQMLWhitelist.qml"); |
| 297 | 298 | ||
| 298 | if (!hmd->getShouldShowTablet()) { | 299 | if (!hmd->getShouldShowTablet()) { |