mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[MWB][Enterprise] Add new policies and improve settings UI for the Transfer File setting (#33571)
## Summary of the Pull Request ### Improve settings page for TransferFile setting The TransferFile setting depends on ShareClipboard setting. This is now visually shown. **Before the change:**  **After the change**  ### New policies are added for MWB Name | Supported states | Id | Behavior ------------ | ------------- | ------------ | ------------- Clipboard sharing enabled | disabled | MwbClipboardSharingEnabled | Disables the feature if set to disabled. File transfer enabled | disabled | MwbFileTransferEnabled | Disables the feature if set to disabled. Original user interface enabled | disabled | MwbUseOriginalUserInterface | Disables the feature if set to disabled. | Disallow blocking screensaver on other machines | enabled | MwbDisallowBlockingScreensaver | Disables the feature if set to enabled. | Connect only in same subnet | enabled & disabled | MwbSameSubnetOnly | Enables the feature if set to enabled.<br />Disables the feature if set to disabled. | Validate remote machine IP Address | enabled & disabled | MwbValidateRemoteIp | Enables the feature if set to enabled.<br />Disables the feature if set to disabled. Disable user defined IP Address mapping rules | enabled | MwbDisableUserDefinedIpMappingRules | If enabled the user can't define IP Address mapping rules. Predefined IP Address mappings | enabled with multi-line text value | MwbPolicyDefinedIpMappingRules | Allows admins to force define IP Address mapping rules. #### User Interface screenshots   
This commit is contained in:
@@ -853,6 +853,56 @@ namespace MouseWithoutBorders
|
||||
|
||||
comboBoxEasyMouse.Text = Setting.Values.HotKeyToggleEasyMouse == 0 ? "Disable" : new string(new char[] { (char)Setting.Values.HotKeyToggleEasyMouse });
|
||||
#endif
|
||||
|
||||
// Apply policy configuration on UI elements
|
||||
// Has to be the last action
|
||||
if (Setting.Values.ShareClipboardIsGpoConfigured)
|
||||
{
|
||||
checkBoxShareClipboard.Enabled = false;
|
||||
checkBoxShareClipboard.Text += " [Managed]";
|
||||
|
||||
// transfer file setting depends on clipboard sharing
|
||||
checkBoxTransferFile.Enabled = false;
|
||||
}
|
||||
|
||||
if (Setting.Values.TransferFileIsGpoConfigured)
|
||||
{
|
||||
checkBoxTransferFile.Enabled = false;
|
||||
checkBoxTransferFile.Text += " [Managed]";
|
||||
}
|
||||
|
||||
if (Setting.Values.BlockScreenSaverIsGpoConfigured)
|
||||
{
|
||||
checkBoxBlockScreenSaver.Enabled = false;
|
||||
checkBoxBlockScreenSaver.Text += " [Managed]";
|
||||
}
|
||||
|
||||
if (Setting.Values.SameSubNetOnlyIsGpoConfigured)
|
||||
{
|
||||
checkBoxSameSubNet.Enabled = false;
|
||||
checkBoxSameSubNet.Text += " [Managed]";
|
||||
}
|
||||
|
||||
if (Setting.Values.ReverseLookupIsGpoConfigured)
|
||||
{
|
||||
checkBoxReverseLookup.Enabled = false;
|
||||
checkBoxReverseLookup.Text += " [Managed]";
|
||||
}
|
||||
|
||||
if (Setting.Values.Name2IpIsGpoConfigured)
|
||||
{
|
||||
textBoxMachineName2IP.Enabled = false;
|
||||
groupBoxDNS.ForeColor = Color.DimGray;
|
||||
groupBoxDNS.Text += " [Managed]";
|
||||
}
|
||||
|
||||
if (Setting.Values.Name2IpPolicyListIsGpoConfigured)
|
||||
{
|
||||
pictureBoxMouseWithoutBorders.Visible = false;
|
||||
groupBoxName2IPPolicyList.Visible = true;
|
||||
textBoxMachineName2IPPolicyList.Visible = true;
|
||||
textBoxMachineName2IPPolicyList.Text = Setting.Values.Name2IpPolicyList;
|
||||
}
|
||||
}
|
||||
|
||||
private void RadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user