mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01: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"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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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: {
|
||||
|
||||
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