Skip to content

Improved license activation error messages - #207

Open
RasmusAlgoryx wants to merge 7 commits into
masterfrom
fix/improved-license-activation-error-messages
Open

RasmusAlgoryx wants to merge 7 commits into
masterfrom
fix/improved-license-activation-error-messages

Conversation

@RasmusAlgoryx

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread AGXUnity/LicenseInfo.cs
if ( agx.Runtime.instance().hasKey( "InstallationID" ) ) {
if ( info.IsFloating || agx.Runtime.instance().hasKey( "InstallationID" ) ) {
info.Type = LicenseType.Service;
info.UniqueId = agx.Runtime.instance().readValue( "InstallationID" );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this safe when we are not sure if he key exists?

Comment thread AGXUnity/LicenseInfo.cs
Comment on lines +158 to +159
info.Type = native.licenseType == -1 ? LicenseType.Unknown : LicenseType.Service;
info.TypeDescription = "Unknown";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under what circumstances do we get "Unknown"?

Log( $"AGXUnity.LicenseManager: {info} (Context: {context})" );
}

private static void IssueLoadWarning( string warning, string context )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it reasonable to assume that these will only be called once for a load failure and that LastOperationError is unset prior to calling? Should they compound all errors/warnings somehow?


m_scroll = EditorGUILayout.BeginScrollView( m_scroll );

using ( new GUI.EnabledBlock( !IsUpdatingLicenseInformation && !IsBusy ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include an IsPlayingOrWillChangePlaymode check as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants