From 008b99080026b4d5bfa9072264bf0ee9f9209a7d Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 21 Jan 2018 18:42:06 -0800 Subject: [PATCH] Restore old CVar system --- hecl-gui/LaunchMenu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hecl-gui/LaunchMenu.cpp b/hecl-gui/LaunchMenu.cpp index 5b0d378b2..5dbcdf0ff 100644 --- a/hecl-gui/LaunchMenu.cpp +++ b/hecl-gui/LaunchMenu.cpp @@ -1,7 +1,7 @@ #include "LaunchMenu.hpp" #include "hecl/CVarCommons.hpp" -extern hecl::BoolCVar* hecl::com_developer; +extern hecl::CVar* hecl::com_developer; LaunchMenu::LaunchMenu(hecl::CVarCommons& commons, QWidget* parent) : QMenu("Launch Menu", parent), @@ -85,9 +85,9 @@ void LaunchMenu::initDeepColor() void LaunchMenu::initDeveloperMode() { - QAction* act = addAction("&Developer Mode"); + QAction* act = addAction("Developer Mode"); act->setCheckable(true); - act->setChecked(hecl::com_developer->value()); + act->setChecked(hecl::com_developer->toBoolean()); connect(act, SIGNAL(triggered()), this, SLOT(developerModeTriggered())); }