Commit 2fb5615f authored by Nikita Krishnia-INTERN's avatar Nikita Krishnia-INTERN Committed by Aaron Plattner

Modifications in the sensitivity of Apply/Cancel button in 'Manage License'...

Modifications in the sensitivity of Apply/Cancel button in 'Manage License' page of nvidia-settings:

Issue:
Apply/Cancel button is disabled post moving from "Quadro Virtual" "Datacenter
Workstation" license edition to "Unlicensed Tesla" license edition.

Fix:
Apply/Cancel buttons are enabled only under following cases:
* If the License Edition has changed, that is the corresponding feature type
  selection has changed.
* If any of the textbox entry has changed.
Also updating the license Acquiring, unlicensed and failed message strings on UI
according to the feature type selection.
parent 8bb5cbaa
This diff is collapsed.
......@@ -66,8 +66,9 @@ struct _CtkManageGridLicense
DbusData *dbusData;
gint license_edition_state;
gboolean license_edition_gvw_selected;
gint feature_type;
int license_status;
int license_feature_type;
};
struct _CtkManageGridLicenseClass
......
......@@ -27,9 +27,10 @@
#define NV_GRID_DBUS_OBJECT "/nvidia/grid/license"
#define NV_GRID_DBUS_INTERFACE "nvidia.grid.license"
#define NV_GRID_DBUS_METHOD "GridLicenseState"
#define LICENSE_DETAILS_UPDATE_SUCCESS 0
#define LICENSE_STATE_REQUEST 1
#define LICENSE_DETAILS_UPDATE_REQUEST 2
#define LICENSE_DETAILS_UPDATE_SUCCESS 0
#define LICENSE_FEATURE_TYPE_REQUEST 3
/*
* List of grid license states
......@@ -51,4 +52,14 @@ typedef enum
NV_GRID_LICENSE_RESTART_REQUIRED, // Restart your system for Tesla Edition. Your system is currently running Quadro Virtual Datacenter Workstation Edition.
} gridLicenseStatus;
/*
* List of grid license feature types
*/
typedef enum
{
NV_GRID_LICENSED_FEATURE_TYPE_TESLA = 0,
NV_GRID_LICENSED_FEATURE_TYPE_VGPU,
NV_GRID_LICENSED_FEATURE_TYPE_GVW,
} gridLicenseFeatureType;
#endif // _NVIDIA_NV_GRID_DBUS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment