[MWB]Disable settings from old UI that we do not support (#33564)

## Summary of the Pull Request

This PR disables the check boxes for settings that we do not support in
the PowerToys implementation.

![image](https://github.com/microsoft/PowerToys/assets/61519853/da3dadf0-8ba4-4f0f-b491-9ca21b54c20a)

![image](https://github.com/microsoft/PowerToys/assets/61519853/8b561b9f-f4b5-4a5b-b61e-710d5b0f2b61)
This commit is contained in:
Heiko 2024-07-17 15:51:38 +02:00 committed by GitHub
parent c87d8c37e1
commit 0ddff0fcf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -448,6 +448,8 @@ namespace MouseWithoutBorders.Class
}
}
// Note(@htcfreek): Settings UI CheckBox is disabled in frmMatrix.cs > FrmMatrix_Load()
// Note(@htcfreek): If this settings gets implemented in the future we need a Group Policy for it!
internal bool DisableCAD
{
get
@ -456,6 +458,8 @@ namespace MouseWithoutBorders.Class
}
}
// Note(@htcfreek): Settings UI CheckBox is disabled in frmMatrix.cs > FrmMatrix_Load()
// Note(@htcfreek): If this settings gets implemented in the future we need a Group Policy for it!
internal bool HideLogonLogo
{
get
@ -989,6 +993,7 @@ namespace MouseWithoutBorders.Class
}
}
// Note(@htcfreek): Settings UI CheckBox is disabled in frmMatrix.cs > FrmMatrix_Load()
internal bool SendErrorLogV2
{
get

View File

@ -797,6 +797,14 @@ namespace MouseWithoutBorders
checkBoxHideLogo.Enabled = false;
}
// Note(@htcfreek): Disable checkboxes of settings that we don't support in the PowerToys implementation
checkBoxDisableCAD.Enabled = false;
checkBoxDisableCAD.Text = checkBoxDisableCAD.Text + " [Unsupported!]";
checkBoxHideLogo.Enabled = false;
checkBoxHideLogo.Text = checkBoxHideLogo.Text + " [Unsupported!]";
checkBoxSendLog.Enabled = false;
checkBoxSendLog.Text = checkBoxSendLog.Text + " [Unsupported!]";
checkBoxShareClipboard.Checked = Setting.Values.ShareClipboard;
if (!Setting.Values.ShareClipboard)