mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-11 14:02:24 +02:00
Use dynamic version in settings
Applies to https://github.com/microsoft/PowerToys/issues/736
This commit is contained in:
committed by
Bartosz Sosnowski
parent
af127468a6
commit
633784fae2
@@ -35,6 +35,7 @@ web::json::value get_general_settings() {
|
|||||||
|
|
||||||
result.as_object()[L"theme"] = json::value::string(settings_theme);
|
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"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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ export class GeneralSettings extends React.Component <any, any> {
|
|||||||
ref={(input) => {this.theme_reference=input;}}
|
ref={(input) => {this.theme_reference=input;}}
|
||||||
/>
|
/>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Label>Version 0.13.0</Label>
|
<Label>Version {this.state.settings.general.powertoys_version}</Label>
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
styles={{
|
styles={{
|
||||||
root: {
|
root: {
|
||||||
|
|||||||
2
src/settings/settings-html/dist/bundle.js
vendored
2
src/settings/settings-html/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user