diff --git a/src/cascadia/TerminalSettingsEditor/Profiles.cpp b/src/cascadia/TerminalSettingsEditor/Profiles.cpp index 08475235578..c1c83e3dc60 100644 --- a/src/cascadia/TerminalSettingsEditor/Profiles.cpp +++ b/src/cascadia/TerminalSettingsEditor/Profiles.cpp @@ -362,7 +362,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation } BackgroundImagePath(L"desktopWallpaper"); } - else if (HasBackgroundImagePath()) + else { // Restore the path we had previously cached. This might be the // empty string. @@ -399,7 +399,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation } StartingDirectory(L""); } - else if (HasStartingDirectory()) + else { // Restore the path we had previously cached as long as it wasn't empty // If it was empty, set the starting directory to %USERPROFILE%