From e75916fd929ac09c0cec8fdce10c22fbc093900e Mon Sep 17 00:00:00 2001 From: Arjun Balgovind <32061677+arjunbalgovind@users.noreply.github.com> Date: Tue, 5 May 2020 21:17:43 -0700 Subject: [PATCH] Fixed SettingsV2 crash (#2704) * Fixed crash * Initialize theme string --- src/runner/settings_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/settings_window.cpp b/src/runner/settings_window.cpp index e30166268a..7c2432c404 100644 --- a/src/runner/settings_window.cpp +++ b/src/runner/settings_window.cpp @@ -288,7 +288,7 @@ void run_settings_window() // Arg 4: settings theme. const std::wstring settings_theme_setting{ get_general_settings().theme }; - std::wstring settings_theme; + std::wstring settings_theme = L"system"; if (settings_theme_setting == L"dark" || (settings_theme_setting == L"system" && WindowsColors::is_dark_mode())) { settings_theme = L"dark";