mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[Auto-update] Turn off on Windows < 1903 (#10240)
This commit is contained in:
@@ -39,3 +39,14 @@ std::wstring VersionHelper::toWstring() const
|
||||
result += std::to_wstring(revision);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string VersionHelper::toString() const
|
||||
{
|
||||
std::string result{ "v" };
|
||||
result += std::to_string(major);
|
||||
result += '.';
|
||||
result += std::to_string(minor);
|
||||
result += '.';
|
||||
result += std::to_string(revision);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -15,4 +15,5 @@ struct VersionHelper
|
||||
size_t revision;
|
||||
|
||||
std::wstring toWstring() const;
|
||||
std::string toString() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user