Fixed SettingsV2 crash (#2704)

* Fixed crash

* Initialize theme string
This commit is contained in:
Arjun Balgovind 2020-05-05 21:17:43 -07:00 committed by GitHub
parent e01ed8ad3c
commit e75916fd92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";