Skip to content

Commit

Permalink
Use empty version for the OS one instead of looking it up.
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed Apr 20, 2021
1 parent d244012 commit 0b3d8e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cascadia/TerminalSettingsModel/DefaultTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ winrt::hstring DefaultTerminal::Name() const

winrt::hstring DefaultTerminal::Version() const
{
// If there's no version information... return empty string instead.
if (DelegationConfig::PkgVersion{} == _pkg.terminal.version)
{
return winrt::hstring{};
}

const auto name = fmt::format(std::wstring_view(RS_(L"TerminalVersionPattern")), _pkg.terminal.version.major, _pkg.terminal.version.minor, _pkg.terminal.version.build, _pkg.terminal.version.revision);
return winrt::hstring{ name };
}
Expand Down

1 comment on commit 0b3d8e5

@github-actions

This comment was marked as duplicate.

Please sign in to comment.