mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
adjusting elevated permission verbiage to match Windows
This commit is contained in:
parent
03ddadc1ed
commit
d41962f9d1
@ -122,12 +122,12 @@ export class GeneralSettings extends React.Component <any, any> {
|
||||
<Separator />
|
||||
<Text variant='xLarge'>General</Text>
|
||||
<BoolToggleSettingsControl
|
||||
setting={{display_name: 'Start at login', value: this.state.settings.general.startup}}
|
||||
setting={{display_name: 'Run at Startup', value: this.state.settings.general.startup}}
|
||||
on_change={this.parent_on_change}
|
||||
ref={(input) => {this.startup_reference=input;}}
|
||||
/>
|
||||
<BoolToggleSettingsControl
|
||||
setting={{display_name: 'Run PowerToys as administrator', value: this.state.settings.general.run_elevated}}
|
||||
setting={{display_name: 'Always run as administrator', value: this.state.settings.general.run_elevated}}
|
||||
on_change={this.parent_on_change}
|
||||
ref={(input) => {this.elevated_reference=input;}}
|
||||
/>
|
||||
@ -135,11 +135,11 @@ export class GeneralSettings extends React.Component <any, any> {
|
||||
setting={{
|
||||
display_name: '',
|
||||
value: this.state.settings.general.is_elevated ?
|
||||
'PowerToys is currently running with elevated privileges. You can restart it to run non-elevated only for this session, without changing the default setting.' :
|
||||
'PowerToys is currently running without elevated privileges. You can restart it to run elevated only for this session, without changing the default setting.',
|
||||
'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 without elevated privileges' :
|
||||
'Restart with elevated privileges'
|
||||
'Restart as user' :
|
||||
'Restart as administrator'
|
||||
}}
|
||||
action_name={'restart_elevation'}
|
||||
action_callback={(action_name: any, value:any) => {
|
||||
|
25
src/settings/settings-html/200.html
Normal file
25
src/settings/settings-html/200.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
window.output_from_webview = function(arg) {
|
||||
if (typeof (window.external) !== 'undefined' && ('notify' in window.external)) {
|
||||
window.external.notify(arg);
|
||||
}
|
||||
}
|
||||
function receive_from_settings_app(arg) {
|
||||
window.react_app_component.receive_config_msg(JSON.parse(arg));
|
||||
return '';
|
||||
}
|
||||
function exit_settings_app() {
|
||||
window.react_app_component.receive_exit_request();
|
||||
return '';
|
||||
}
|
||||
</script>
|
||||
<title>PowerToys Settings</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="dist/bundle.js" charset="UTF-8"></script>
|
||||
</body>
|
||||
</html>
|
13
src/settings/settings-html/404.html
Normal file
13
src/settings/settings-html/404.html
Normal file
File diff suppressed because one or more lines are too long
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