Use dynamic version in settings

Applies to https://github.com/microsoft/PowerToys/issues/736
This commit is contained in:
Bartosz Sosnowski
2019-11-19 22:32:36 +01:00
committed by Bartosz Sosnowski
parent af127468a6
commit 633784fae2
3 changed files with 3 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ web::json::value get_general_settings() {
result.as_object()[L"theme"] = json::value::string(settings_theme);
result.as_object()[L"system_theme"] = json::value::string(WindowsColors::is_dark_mode() ? L"dark" : L"light");
result.as_object()[L"powertoys_version"] = json::value::string(get_product_version());
return result;
}

View File

@@ -191,7 +191,7 @@ export class GeneralSettings extends React.Component <any, any> {
ref={(input) => {this.theme_reference=input;}}
/>
<Stack>
<Label>Version 0.13.0</Label>
<Label>Version {this.state.settings.general.powertoys_version}</Label>
<PrimaryButton
styles={{
root: {

File diff suppressed because one or more lines are too long