From caa7f6486569130c64fdf88e6a6cefc20b4a03a7 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Thu, 31 May 2018 10:58:04 -0700 Subject: [PATCH] fixing show overlays menu item --- interface/src/Application.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index d4dc214fde..e507af26f7 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -4798,12 +4798,15 @@ void Application::loadSettings() { // DONT CHECK IN //DependencyManager::get()->setAutomaticLODAdjust(false); - Menu::getInstance()->loadSettings(); + auto menu = Menu::getInstance(); + menu->loadSettings(); + + // override the menu option show overlays to always be true on startup + menu->setIsOptionChecked(MenuOption::Overlays, true); // If there is a preferred plugin, we probably messed it up with the menu settings, so fix it. auto pluginManager = PluginManager::getInstance(); auto plugins = pluginManager->getPreferredDisplayPlugins(); - auto menu = Menu::getInstance(); if (plugins.size() > 0) { for (auto plugin : plugins) { if (auto action = menu->getActionForOption(plugin->getName())) {