mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-20 22:42:10 +00:00
test signing
This commit is contained in:
parent
0deef16a19
commit
fc2cc2b532
@ -54,11 +54,11 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
|
|||||||
|
|
||||||
private bool IsAuditBelowMinimum => this.audit is not null && this.audit.Level < this.MinimumLevel;
|
private bool IsAuditBelowMinimum => this.audit is not null && this.audit.Level < this.MinimumLevel;
|
||||||
|
|
||||||
private bool IsActivationBlockedBySettings => this.audit is null || this.IsAuditBelowMinimum && this.AuditSettings.BlockActivationBelowMinimum;
|
private bool IsActivationBlockedBySettings => this.AuditSettings.RequireAuditBeforeActivation && (this.audit is null || this.IsAuditBelowMinimum && this.AuditSettings.BlockActivationBelowMinimum);
|
||||||
|
|
||||||
private bool RequiresActivationConfirmation => this.audit is not null && this.IsAuditBelowMinimum && !this.AuditSettings.BlockActivationBelowMinimum;
|
private bool RequiresActivationConfirmation => this.audit is not null && this.IsAuditBelowMinimum && !this.IsActivationBlockedBySettings;
|
||||||
|
|
||||||
private bool CanEnablePlugin => this.audit is not null && !this.isAuditing && !this.IsActivationBlockedBySettings;
|
private bool CanEnablePlugin => this.plugin is not null && !this.isAuditing && !this.IsActivationBlockedBySettings;
|
||||||
|
|
||||||
private Color EnableButtonColor => this.RequiresActivationConfirmation ? Color.Warning : Color.Success;
|
private Color EnableButtonColor => this.RequiresActivationConfirmation ? Color.Warning : Color.Success;
|
||||||
private bool justAudited;
|
private bool justAudited;
|
||||||
@ -118,7 +118,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
|
|||||||
|
|
||||||
private async Task EnablePlugin()
|
private async Task EnablePlugin()
|
||||||
{
|
{
|
||||||
if (this.audit is null)
|
if (this.plugin is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (this.IsActivationBlockedBySettings)
|
if (this.IsActivationBlockedBySettings)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user