settings: add a clarifying label if running as elevated (#1330)

This commit is contained in:
Andrey Nekrasov 2020-02-19 19:31:09 +03:00 committed by GitHub
parent e21f83267a
commit 883bbf102a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -133,6 +133,9 @@ export class GeneralSettings extends React.Component <any, any> {
ref={(input) => {this.startup_reference=input;}}
/>
</Stack>
{this.state.settings.general.is_elevated && (<Label>Currently running as administrator</Label>)}
{this.state.settings.general.is_admin &&
(<BoolToggleSettingsControl
setting={{display_name: 'Always run as administrator', value: this.state.settings.general.run_elevated}}

File diff suppressed because one or more lines are too long