internal static bool ValidateToS() { var plugin = Svc <ImportPlugin> .Plugin; if (plugin.ImportConfig.HasAgreedToTOS) { return(true); } var consent = TermsOfLicense.AskConsent(); if (!consent) { return(false); } plugin.ImportConfig.HasAgreedToTOS = true; plugin.SaveConfig(); return(true); }
private bool ValidateToS() { var plugin = Svc <EpubImporterPlugin> .Plugin; if (plugin.Config.HasAgreedToTOS) { return(true); } var consent = TermsOfLicense.AskConsent(); if (!consent) { return(false); } plugin.Config.HasAgreedToTOS = true; plugin.SaveConfig(); return(true); }