Skip to content

Commit

Permalink
move debugFeaturesEnabled constexpr back to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-zamora committed Aug 28, 2020
1 parent 615b263 commit 7cd72aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalApp/CascadiaSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CascadiaSettings::CascadiaSettings() :
// Arguments:
// - addDynamicProfiles: if true, we'll add the built-in DPGs.
CascadiaSettings::CascadiaSettings(const bool addDynamicProfiles) :
_globals(winrt::make_self<winrt::TerminalApp::implementation::GlobalAppSettings>())
_globals{ winrt::make_self<winrt::TerminalApp::implementation::GlobalAppSettings>() }
{
if (addDynamicProfiles)
{
Expand Down
9 changes: 8 additions & 1 deletion src/cascadia/TerminalApp/GlobalAppSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,18 @@ static constexpr std::string_view ForceFullRepaintRenderingKey{ "experimental.re
static constexpr std::string_view SoftwareRenderingKey{ "experimental.rendering.software" };
static constexpr std::string_view ForceVTInputKey{ "experimental.input.forceVT" };

#ifdef _DEBUG
static constexpr bool debugFeaturesDefault{ true };
#else
static constexpr bool debugFeaturesDefault{ false };
#endif

GlobalAppSettings::GlobalAppSettings() :
_keybindings{ winrt::make_self<AppKeyBindings>() },
_keybindingsWarnings{},
_unparsedDefaultProfile{},
_defaultProfile{}
_defaultProfile{},
_DebugFeaturesEnabled{ debugFeaturesDefault }
{
_commands = winrt::single_threaded_map<winrt::hstring, winrt::TerminalApp::Command>();
_colorSchemes = winrt::single_threaded_map<winrt::hstring, winrt::TerminalApp::ColorScheme>();
Expand Down
8 changes: 1 addition & 7 deletions src/cascadia/TerminalApp/GlobalAppSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ Author(s):
#include "Command.h"
#include "ColorScheme.h"

#ifdef _DEBUG
static constexpr bool debugFeaturesDefault{ true };
#else
static constexpr bool debugFeaturesDefault{ false };
#endif

// fwdecl unittest classes
namespace TerminalAppLocalTests
{
Expand Down Expand Up @@ -80,7 +74,7 @@ namespace winrt::TerminalApp::implementation
GETSET_PROPERTY(bool, ForceFullRepaintRendering, false);
GETSET_PROPERTY(bool, SoftwareRendering, false);
GETSET_PROPERTY(bool, ForceVTInput, false);
GETSET_PROPERTY(bool, DebugFeaturesEnabled, debugFeaturesDefault);
GETSET_PROPERTY(bool, DebugFeaturesEnabled); // default value set in constructor
GETSET_PROPERTY(bool, StartOnUserLogin, false);
GETSET_PROPERTY(bool, AlwaysOnTop, false);
GETSET_PROPERTY(bool, UseTabSwitcher, true);
Expand Down

0 comments on commit 7cd72aa

Please sign in to comment.