mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
settings: remove Restart as a user button in an elevated context (#1328)
This commit is contained in:
parent
27f0782465
commit
e21f83267a
@ -140,16 +140,12 @@ export class GeneralSettings extends React.Component <any, any> {
|
||||
ref={(input) => {this.elevated_reference=input;}}
|
||||
/>)
|
||||
}
|
||||
{this.state.settings.general.is_admin &&
|
||||
{this.state.settings.general.is_admin && !this.state.settings.general.is_elevated &&
|
||||
(<CustomActionSettingsControl
|
||||
setting={{
|
||||
display_name: '',
|
||||
value: this.state.settings.general.is_elevated ?
|
||||
'Running as administrator. Do you wish to run as user instead?' :
|
||||
'Running as user. Do you wish to run as administrator instead?',
|
||||
button_text: this.state.settings.general.is_elevated ?
|
||||
'Restart as user' :
|
||||
'Restart as administrator'
|
||||
value: 'Running as user. Do you wish to run as administrator instead?',
|
||||
button_text: 'Restart as administrator'
|
||||
}}
|
||||
action_name={'restart_elevation'}
|
||||
action_callback={(action_name: any, value:any) => {
|
||||
|
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
Loading…
Reference in New Issue
Block a user