improve home screen
This commit is contained in:
@ -245,6 +245,13 @@ fn get_app_status(app_handle: tauri::AppHandle) -> Result<licensing::AppStatus,
|
||||
Ok(licensing::get_app_status(&data_dir))
|
||||
}
|
||||
|
||||
/// Verify a license key signature without caching. Returns the payload.
|
||||
#[tauri::command]
|
||||
fn verify_license(license_key: String) -> Result<licensing::LicensePayload, String> {
|
||||
licensing::verify_license_key(&license_key)
|
||||
.map_err(|e| e.to_string())
|
||||
}
|
||||
|
||||
/// Verify and activate a license key.
|
||||
#[tauri::command]
|
||||
fn activate_license(app_handle: tauri::AppHandle, license_key: String) -> Result<licensing::LicensePayload, String> {
|
||||
@ -417,6 +424,7 @@ pub fn run() {
|
||||
get_app_status,
|
||||
activate_license,
|
||||
deactivate_license,
|
||||
verify_license,
|
||||
start_trial,
|
||||
has_license_feature,
|
||||
list_models,
|
||||
|
||||
Reference in New Issue
Block a user